Skip to content

Commit

Permalink
Fix "osc buildinfo --prefer-pkgs <dir>..." (finally!)
Browse files Browse the repository at this point in the history
This is a follow-up commit for commit ce9a6d0 ("Fixed
\"osc buildinfo --prefer-pkgs...\"").
  • Loading branch information
marcus-h committed Dec 6, 2017
1 parent aa01b1c commit b1d6d83
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions osc/commandline.py
Original file line number Diff line number Diff line change
Expand Up @@ -5702,9 +5702,9 @@ def do_buildinfo(self, subcmd, opts, *args):
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()

Expand Down

0 comments on commit b1d6d83

Please sign in to comment.