diff --git a/setup.py b/setup.py index 8fd1917..24456a6 100644 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ from setuptools import setup setup( name = "centpkg", - version = "0.0.1", + version = "0.0.2", author = "Brian Stinson", author_email = "bstinson@ksu.edu", description = "CentOS Plugin to rpkg for managing RPM package sources", diff --git a/src/centpkg/__init__.py b/src/centpkg/__init__.py index 7332b45..595d66b 100644 --- a/src/centpkg/__init__.py +++ b/src/centpkg/__init__.py @@ -126,7 +126,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 = archive.strip().split(' ', 1) + csum, file = map(str.strip, archive.strip().split(' ', 1)) except ValueError: raise pyrpkg.rpkgError('Malformed sources file.') # See if we already have a valid copy downloaded