mirror of
https://git.centos.org/centos/centpkg.git
synced 2025-02-23 08:12:55 +00:00
split() on all whitespace removing the need for strip()
This commit is contained in:
parent
8f2a1accaa
commit
7974593b12
1 changed files with 1 additions and 1 deletions
|
@ -116,7 +116,7 @@ class Commands(pyrpkg.Commands):
|
|||
# This strip / split is kind a ugly, but checksums shouldn't have
|
||||
# two spaces in them. sources file might need more structure in the
|
||||
# future
|
||||
csum, file = map(str.strip, archive.strip().split(' ', 1))
|
||||
csum, file = archive.strip().split(None, 1)
|
||||
except ValueError:
|
||||
raise pyrpkg.rpkgError('Malformed sources file.')
|
||||
# See if we already have a valid copy downloaded
|
||||
|
|
Loading…
Add table
Reference in a new issue