summaryrefslogtreecommitdiffstats
path: root/modules/package.py
diff options
context:
space:
mode:
authorYaakov M. Nemoy <loupgaroublond@gmail.com>2009-01-18 16:24:29 -0500
committerYaakov M. Nemoy <loupgaroublond@gmail.com>2009-01-18 16:24:29 -0500
commitd479ded1669de67df94fe62c2c1c896a4694b874 (patch)
treeb4885cde6aa7d0f569fdcb922c0fb5283c97c8ff /modules/package.py
parent690fc37a3b4b1bfcdaa26d31742b4b22b7c926b1 (diff)
downloadfedora-devshell-d479ded1669de67df94fe62c2c1c896a4694b874.tar.gz
fedora-devshell-d479ded1669de67df94fe62c2c1c896a4694b874.tar.xz
fedora-devshell-d479ded1669de67df94fe62c2c1c896a4694b874.zip
Modifies package and build to work with multiple sourceballs
Diffstat (limited to 'modules/package.py')
-rw-r--r--modules/package.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/modules/package.py b/modules/package.py
index bf1e3ec..2e46add 100644
--- a/modules/package.py
+++ b/modules/package.py
@@ -124,10 +124,16 @@ class Package(Directory):
def fetch_sourceballs(self, profile=None):
pkg_srcen = self.sources
pkg_srcen = (DirFactory(pkg_src) for pkg_src in pkg_srcen)
+ self.cfg['sourceballen'] = list()
with pwd(self.dir):
for pkg_src in pkg_srcen:
pkg_src.setup_sourceball(self.ver(profile))
symlink(pkg_src.sourceball_loc, pkg_src.sourceball)
+ self.cfg['sourceballen'].append(pkg_src.sourceball)
+
+ @property
+ def sourceballen(self):
+ return self.cfg['sourceballen']
# These don't make sense anymore
# TODO: Figure out the API to iterate over PackageSources where *args should be diff for each one