1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-09-20 09:16:16 +02:00

- do_buildinfo: fixed "osc buildinfo -p <path>"

This commit is contained in:
Marcus Huewe 2014-07-15 20:36:37 +02:00
parent f8a1fa2ebc
commit ea349d9ad0

View File

@ -5258,8 +5258,8 @@ Please submit there instead, or use --nodevelproject to force direct submission.
elif opts.prefer_pkgs:
from .build import get_prefer_pkgs
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(args[2])[1])
cpio.add(os.path.basename(args[2]), build_descr_data)
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()
print(''.join(get_buildinfo(apiurl,