1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-12-26 09:56:13 +01:00

extra-pkgs must be list always

This commit is contained in:
Ludwig Nussel 2009-11-13 13:24:33 +00:00
parent c3f6f03e3c
commit bed57f7684
2 changed files with 2 additions and 5 deletions

View File

@ -350,11 +350,10 @@ def main(opts, argv):
'project' : prj, 'package' : pac
}
extra_pkgs = []
if not opts.extra_pkgs:
extra_pkgs = config['extra-pkgs']
elif opts.extra_pkgs == ['']:
extra_pkgs = None
else:
elif opts.extra_pkgs != ['']:
extra_pkgs = opts.extra_pkgs
if xp:

View File

@ -512,8 +512,6 @@ def get_config(override_conffile = None,
re_clist = re.compile('[, ]+')
config['extra-pkgs'] = [ i.strip() for i in re_clist.split(config['extra-pkgs'].strip()) if i ]
if config['extra-pkgs'] == []:
config['extra-pkgs'] = None
# collect the usernames, passwords and additional options for each api host
api_host_options = {}