[PATCH 1/2] Allow custom 'sources' metadata file

Pat Riehecky riehecky at fnal.gov
Wed Jul 2 16:11:26 UTC 2014


From: Pat Riehecky <riehecky at 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 31e516c..c4beb20 100644
--- a/src/pyrpkg/__init__.py
+++ b/src/pyrpkg/__init__.py
@@ -1461,11 +1461,11 @@ class Commands(object):
         self._run_command(cmd, cwd=self.path)
         return
 
-    def sources(self, outdir=None):
+    def sources(self, outdir=None, sourcefile='sources'):
         """Download source files"""
 
         try:
-            archives = open(os.path.join(self.path, 'sources'),
+            archives = open(os.path.join(self.path, sourcefile),
                             'r').readlines()
         except IOError, e:
             raise rpkgError('%s is not a valid repo: %s' % (self.path, e))
-- 
1.7.1



More information about the buildsys mailing list