mirror of
https://github.com/openSUSE/osc.git
synced 2024-12-29 03:06:15 +01:00
Fixed "osc buildinfo --prefer-pkgs..."
Was broken since ages (literally!)...
(see commit d5b795a02b
).
This commit is contained in:
parent
564918f37a
commit
ce9a6d0f46
@ -5490,10 +5490,14 @@ Please submit there instead, or use --nodevelproject to force direct submission.
|
||||
raise oscerr.WrongArgs('error: a build description is needed if \'--prefer-pkgs\' is used')
|
||||
elif opts.prefer_pkgs:
|
||||
from .build import get_prefer_pkgs
|
||||
from .util import cpio
|
||||
print('Scanning the following dirs for local packages: %s' % ', '.join(opts.prefer_pkgs))
|
||||
prefer_pkgs, cpio = get_prefer_pkgs(opts.prefer_pkgs, arch, os.path.splitext(build_descr)[1])
|
||||
cpio.add(os.path.basename(build_descr), build_descr_data)
|
||||
build_descr_data = cpio.get()
|
||||
cpiodata = cpio.CpioWrite()
|
||||
prefer_pkgs, cpio = 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()
|
||||
|
||||
print(''.join(get_buildinfo(apiurl,
|
||||
project, package, repository, arch,
|
||||
|
Loading…
Reference in New Issue
Block a user