diff options
Diffstat (limited to 'modules/build.py')
-rw-r--r-- | modules/build.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/modules/build.py b/modules/build.py index 338f635..1eba2da 100644 --- a/modules/build.py +++ b/modules/build.py @@ -49,8 +49,8 @@ class Build(Directory): with pwd(pkg.dir): symlink(pkg.spec_file, join(self.dir, 'SPECS', pkg.spec_file)) - sball = pkg.sourceball - symlink(sball, join(self.dir, 'SOURCES', sball)) + for sball in pkg.sourceballen: + symlink(sball, join(self.dir, 'SOURCES', sball)) patches = [f for f in listdir(getcwd()) if f.endswith('.patch')] for patch in patches: symlink(patch, join(self.dir, 'SOURCES', patch)) @@ -126,6 +126,7 @@ class Build(Directory): target_dir is a path to the destination for all the rpms ''' + target_dir = abspath(target_dir) with pwd(self.dir): for path, dirs, files in walk('.'): for f in files: |