mirror of
https://github.com/openSUSE/osc.git
synced 2024-12-26 18:06:13 +01:00
build: allow 'dynamical' build-root setting by using %(repo)s and %(arch)s
This commit is contained in:
parent
e877e12ffb
commit
51247e7a7c
@ -47,6 +47,7 @@ Make sure that you have a [general] section in %%s:
|
||||
#su-wrapper: %(su-wrapper)s
|
||||
|
||||
# rootdir to setup the chroot environment
|
||||
# can contain %%(repo)s and/or %%(arch)s for replacement
|
||||
#build-root: %(build-root)s
|
||||
|
||||
|
||||
@ -205,6 +206,7 @@ def get_build_conf():
|
||||
#su-wrapper: su -c
|
||||
|
||||
# rootdir to setup the chroot environment
|
||||
# can contain %%(repo)s and/or %%(arch)s for replacement
|
||||
#build-root: /var/tmp/build-root
|
||||
|
||||
|
||||
@ -324,7 +326,7 @@ def main(argv):
|
||||
|
||||
cmd = '%s --root=%s --rpmlist=%s --dist=%s %s %s' \
|
||||
% (config['build-cmd'],
|
||||
config['build-root'],
|
||||
config['build-root'] % {'repo': repo, 'arch': arch},
|
||||
rpmlist.name,
|
||||
bc_file.name,
|
||||
spec,
|
||||
|
Loading…
Reference in New Issue
Block a user