[Rpm-maint] [Suse patch] Provide-confusion wrt filenames
Panu Matilainen
pmatilai at redhat.com
Wed May 23 08:53:10 UTC 2007
The patch applies but this seems to have been already fixed by some other
means, can't reproduce with the current rpm.org tree:
[pmatilai at dhcp115 rpm]$ ./rpmq -f rpm
file /home/pmatilai/repos/rpm/rpm is not owned by any package
So, not applied but if somebody manages to reproduce the problem still,
please holler and I'll have another look.
- Panu -
---
Do not check package provides if there is no slash in the file path.
bugzilla [#32467], rh#125516.
--- ./lib/query.c.orig 2004-10-26 23:29:28.000000000 +0000
+++ ./lib/query.c 2005-12-16 18:22:19.000000000 +0000
@@ -614,7 +637,7 @@ int rpmQueryVerify(QVA_t qva, rpmts ts,
if (qva->qva_mi == NULL) {
if (access(fn, F_OK) != 0)
myerrno = errno;
- else if (!provides_checked)
+ else if (!provides_checked && strchr(fn, '/'))
qva->qva_mi = rpmtsInitIterator(ts, RPMTAG_PROVIDENAME, fn, 0);
}
More information about the Rpm-maint
mailing list