From: Pat Riehecky <riehecky(a)fnal.gov>
---
src/pyrpkg/__init__.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/pyrpkg/__init__.py b/src/pyrpkg/__init__.py
index c4beb20..205208c 100644
--- a/src/pyrpkg/__init__.py
+++ b/src/pyrpkg/__init__.py
@@ -1461,7 +1461,7 @@ class Commands(object):
self._run_command(cmd, cwd=self.path)
return
- def sources(self, outdir=None, sourcefile='sources'):
+ def sources(self, outdir=None, sourcefile='sources', valsep=' '):
"""Download source files"""
try:
@@ -1477,7 +1477,7 @@ class Commands(object):
# 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 = archive.strip().split(valsep, 1)
except ValueError:
raise rpkgError('Malformed sources file.')
# See if we already have a valid copy downloaded
--
1.7.1