Open gotmax23 opened 2 weeks ago
After a bit of experimenting - this regression is a side effect of the patch https://github.com/rpm-software-management/libdnf/pull/1670.
The string in question /usr/share/ansible
is found during search in provides
https://github.com/rpm-software-management/libdnf/blob/fbd34472e5edea0a3ed88ae14a47666e23538e4a/libdnf/sack/query.cpp#L2751-L2757
This causes the query is returned even before the string was searched in file lists.
It looks like POOL_FLAG_ADDFILEPROVIDESFILTERED
causes that when filelists metadata are loaded, they are always added to provides. @kontura can you please take a look?
Since the latest libdnf update,
hawkey.Subject.get_best_query
does not honor thewith_filenames
argument. Filenames are still matched even ifwith_filenames
is explicitly set toFalse
.This is breaking fedrq's unit tests that check that our wrapper of the Subject API returns the correct results when
with_filenames
is disabled.