mirror of
https://github.com/openSUSE/osc.git
synced 2025-09-06 13:18:42 +02:00
extra-pkgs must be list always
This commit is contained in:
@@ -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 = {}
|
||||
|
Reference in New Issue
Block a user