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

Merge pull request #1236 from dmach/build-fix-extra-pkgs

build: Fix reading extra-pkgs from oscrc
This commit is contained in:
Daniel Mach 2023-01-26 14:45:50 +01:00 committed by GitHub
commit 6985922d75
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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