From b1d6d8347b740544d0ab92a94f3f0a096a4abe93 Mon Sep 17 00:00:00 2001 From: Marcus Huewe Date: Wed, 6 Dec 2017 18:03:04 +0100 Subject: [PATCH] Fix "osc buildinfo --prefer-pkgs ..." (finally!) This is a follow-up commit for commit ce9a6d0 ("Fixed \"osc buildinfo --prefer-pkgs...\""). --- osc/commandline.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/osc/commandline.py b/osc/commandline.py index c12061bc..4adc0bf3 100644 --- a/osc/commandline.py +++ b/osc/commandline.py @@ -5702,9 +5702,9 @@ Please submit there instead, or use --nodevelproject to force direct submission. from .util import cpio print('Scanning the following dirs for local packages: %s' % ', '.join(opts.prefer_pkgs)) cpiodata = cpio.CpioWrite() - prefer_pkgs, cpio = get_prefer_pkgs(opts.prefer_pkgs, arch, - os.path.splitext(build_descr)[1], - cpiodata) + prefer_pkgs = get_prefer_pkgs(opts.prefer_pkgs, arch, + os.path.splitext(build_descr)[1], + cpiodata) cpiodata.add(os.path.basename(build_descr), build_descr_data) build_descr_data = cpiodata.get()