1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-12-25 17:36:13 +01:00

build: Fix reading extra-pkgs from oscrc

This commit is contained in:
Daniel Mach 2023-01-26 13:42:32 +01:00
parent 71ce566b68
commit c6e8fd103e

View File

@ -871,7 +871,7 @@ def main(apiurl, opts, argv):
extra_pkgs = [] extra_pkgs = []
if not opts.extra_pkgs: if not opts.extra_pkgs:
extra_pkgs = getattr(config, 'extra-pkgs', extra_pkgs) extra_pkgs = config.get('extra-pkgs', [])
elif opts.extra_pkgs != ['']: elif opts.extra_pkgs != ['']:
extra_pkgs = opts.extra_pkgs extra_pkgs = opts.extra_pkgs