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:
parent
b0011af9a8
commit
41c2524691
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user