- This changes query behavior quite a bit as files with non-installed
status are no longer returned as matches. The rationale is that
it makes figuring out dependency issues with the "new" behavior
more obvious (but perhaps we should have a switch to enable
former behavior). Besides not satisfying dependencies, files with
non-installed status are not really owned by the package, as they
would not be removed on package removal.
fn = xstrdup(arg);
(void) rpmCleanPath(fn);
- mi = rpmtsInitIterator(ts, RPMDBI_BASENAMES, fn, 0);
+ /* XXX Add a switch to enable former BASENAMES behavior? */
+ mi = rpmtsInitIterator(ts, RPMDBI_INSTFILENAMES, fn, 0);
if (mi == NULL)
mi = rpmtsInitIterator(ts, RPMDBI_PROVIDENAME, fn, 0);