1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-01-16 10:36:13 +01:00

Fix "osc buildinfo --prefer-pkgs <dir>..." (finally!)

This is a follow-up commit for commit ce9a6d0 ("Fixed
\"osc buildinfo --prefer-pkgs...\"").
This commit is contained in:
Marcus Huewe 2017-12-06 18:03:04 +01:00
parent aa01b1c52a
commit b1d6d8347b

View File

@ -5702,9 +5702,9 @@ Please submit there instead, or use --nodevelproject to force direct submission.
from .util import cpio from .util import cpio
print('Scanning the following dirs for local packages: %s' % ', '.join(opts.prefer_pkgs)) print('Scanning the following dirs for local packages: %s' % ', '.join(opts.prefer_pkgs))
cpiodata = cpio.CpioWrite() cpiodata = cpio.CpioWrite()
prefer_pkgs, cpio = get_prefer_pkgs(opts.prefer_pkgs, arch, prefer_pkgs = get_prefer_pkgs(opts.prefer_pkgs, arch,
os.path.splitext(build_descr)[1], os.path.splitext(build_descr)[1],
cpiodata) cpiodata)
cpiodata.add(os.path.basename(build_descr), build_descr_data) cpiodata.add(os.path.basename(build_descr), build_descr_data)
build_descr_data = cpiodata.get() build_descr_data = cpiodata.get()