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

- mark 'build_platform' option as deprecated

This commit is contained in:
Marcus Huewe 2010-02-18 13:58:01 +01:00
parent 284c529a41
commit 69333ac2e0

View File

@ -634,7 +634,8 @@ def get_config(override_conffile = None,
if config.has_key('apisrv') or config.has_key('scheme'):
print >>sys.stderr, 'Warning: Use of the \'scheme\' or \'apisrv\' in ~/.oscrc is deprecated!\n' \
'Warning: See README for migration details.'
if config.has_key('build_platform') and not config.has_key('build_repository'):
if config.has_key('build_platform'):
print >>sys.stderr, 'Warning: Use of \'build_platform\' config option is deprecated! (use \'build_repository\' instead)'
config['build_repository'] = config['build_platform']
# override values which we were called with