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:
parent
c3f6f03e3c
commit
bed57f7684
@ -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:
|
||||
|
@ -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 = {}
|
||||
|
Loading…
Reference in New Issue
Block a user