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

build: allow 'dynamical' build-root setting by using %(repo)s and %(arch)s

This commit is contained in:
Dr. Peter Poeml 2006-09-15 14:26:09 +00:00
parent e877e12ffb
commit 51247e7a7c

View File

@ -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,