1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-11-10 06:46:15 +01:00

fix dynamical build-root setting (r729)

This commit is contained in:
Dr. Peter Poeml 2006-09-15 16:13:15 +00:00
parent b0011af9a8
commit 41c2524691

View File

@ -273,6 +273,7 @@ def main(argv):
spec = argv[3]
buildargs = []
buildargs += argv[4:]
config['build-root'] = config['build-root'] % {'repo': repo, 'arch': arch}
if not os.path.exists(spec):
print >>sys.stderr, 'Error: specfile \'%s\' does not exist.' % spec
@ -330,7 +331,7 @@ def main(argv):
cmd = '%s --root=%s --rpmlist=%s --dist=%s %s %s' \
% (config['build-cmd'],
config['build-root'] % {'repo': repo, 'arch': arch},
config['build-root'],
rpmlist.name,
bc_file.name,
spec,