mirror of
https://github.com/openSUSE/osc.git
synced 2025-08-28 00:58:52 +02:00
- let environment variables OSC_SU_WRAPPER OSC_BUILD_ROOT override config values
This commit is contained in:
@@ -234,7 +234,7 @@ pass: %s
|
|||||||
config = dict(config.items('general', raw=1))
|
config = dict(config.items('general', raw=1))
|
||||||
|
|
||||||
# make it possible to override configuration of the rc file
|
# 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)
|
val = os.getenv(var)
|
||||||
if val:
|
if val:
|
||||||
if var.startswith('OSC_'): var = var[4:]
|
if var.startswith('OSC_'): var = var[4:]
|
||||||
|
Reference in New Issue
Block a user