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