Skip to content

Commit

Permalink
repoquery: fix calling by_all_deps() for --tree
Browse files Browse the repository at this point in the history
Fixes a bug introduced in bd00c04, where the by_all_deps() arguments
were changed to an array, but in tree_seed() it still passes a single
string.

Untested, I have actually no idea what the code does there, it looks
kind of suspect.

Closes: #1432
Approved by: j-mracek
  • Loading branch information
Lukáš Hrázký authored and rh-atomic-bot committed Jan 27, 2020
1 parent 6665336 commit 1636e20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dnf/cli/commands/repoquery.py
Original file line number Diff line number Diff line change
Expand Up @@ -674,7 +674,7 @@ def tree_seed(self, query, aquery, opts, level=-1, usedpkgs=None):
ar[querypkg.name + "." + querypkg.arch] = querypkg
pkgquery = self.base.sack.query().filterm(pkg=list(ar.values()))
else:
pkgquery = self.by_all_deps(pkg.name, None, aquery) if opts.alldeps \
pkgquery = self.by_all_deps((pkg.name, ), None, aquery) if opts.alldeps \
else aquery.filter(requires__glob=pkg.name)
self.tree_seed(pkgquery, aquery, opts, level + 1, usedpkgs)

Expand Down

0 comments on commit 1636e20

Please sign in to comment.