Skip to content

Commit 094e065

Browse files
j-mracekrh-atomic-bot
authored andcommitted
Fix includes in case of no match (RhBug:1505185)
https://bugzilla.redhat.com/show_bug.cgi?id=1505185 Closes: rpm-software-management#967 Approved by: ignatenkobrain
1 parent 1400702 commit 094e065

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

dnf/base.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,8 +161,7 @@ def _setup_excludes_includes(self, only_main=False):
161161
incl_query = incl_query.union(subj.get_best_query(
162162
self.sack, with_nevra=True, with_provides=False, with_filenames=False))
163163
incl_query = incl_query.filter(reponame=r.id)
164-
if incl_query:
165-
repo_includes.append((incl_query, r.id))
164+
repo_includes.append((incl_query.apply(), r.id))
166165
excl_query = self.sack.query().filter(empty=True)
167166
for excl in set(r.excludepkgs):
168167
subj = dnf.subject.Subject(excl)

0 commit comments

Comments
 (0)