From c6e8fd103e2eec973cb3b72d0e0dd4269c98788f Mon Sep 17 00:00:00 2001 From: Daniel Mach Date: Thu, 26 Jan 2023 13:42:32 +0100 Subject: [PATCH] build: Fix reading extra-pkgs from oscrc --- osc/build.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/osc/build.py b/osc/build.py index 49a57db8..36dcd75f 100644 --- a/osc/build.py +++ b/osc/build.py @@ -871,7 +871,7 @@ def main(apiurl, opts, argv): 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 != ['']: extra_pkgs = opts.extra_pkgs