1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-01-26 06:46:13 +01:00

- let environment variables OSC_SU_WRAPPER OSC_BUILD_ROOT override config values

This commit is contained in:
Dr. Peter Poeml 2006-09-15 14:27:40 +00:00
parent 51247e7a7c
commit 0631e8fcb1

View File

@ -234,7 +234,7 @@ pass: %s
config = dict(config.items('general', raw=1))
# make it possible to override configuration of the rc file
for var in ['OSC_PACKAGECACHEDIR', 'BUILD_ROOT']:
for var in ['OSC_PACKAGECACHEDIR', 'OSC_SU_WRAPPER', 'OSC_BUILD_ROOT', 'BUILD_ROOT']:
val = os.getenv(var)
if val:
if var.startswith('OSC_'): var = var[4:]