Bug 246519
Summary: | repoquery --whatprovides fails for some directories | ||||||
---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Michael Schwendt <bugs.michael> | ||||
Component: | yum-utils | Assignee: | Seth Vidal <skvidal> | ||||
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
Severity: | low | Docs Contact: | |||||
Priority: | low | ||||||
Version: | 7 | CC: | pmatilai, tim.lauridsen | ||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | All | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | 1.1.7-1.fc7 | Doc Type: | Bug Fix | ||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2007-09-18 03:21:16 UTC | Type: | --- | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Attachments: |
|
Description
Michael Schwendt
2007-07-02 19:51:02 UTC
Created attachment 161723 [details]
Workaround patch
This is arguably a bug in yum as repoquery just calls yum methods to look
things up. Curiously enough it seems that while returnPackagesByDep() fails to
find the / level directories, searchPackageProvides() does find them. Attached
patch does that (plus renames a method to avoid naming conflict and recursion
to death), seems to fix the issue for me, but it might not be a bad idea to
figure why are those two things behaving differently here.
Thanks Pamu, It works for me to, so i have added the patch to upstream. Yes, this is a bug in yum. It's also been fixed - it had to do with the filesystem package getting one too many '/'s added to its filelist. it's fixed in git. I remember seeing you mention it's fixed in git but it doesn't look that way (../yum is up-to-date git repo, yum-utils likewise but with the above workaround patch reverted): [pmatilai@turre yum-utils]$ PYTHONPATH=../yum ./repoquery.py --whatprovides /var [pmatilai@turre yum-utils]$ okay then maybe this isn't the same bug. The one I was dealing with was: repoquery -l filesystem didn't list /var it does now, though. So maybe these are not related, though they sure seem like it. yum-utils-1.1.7-1.fc7 has been pushed to the Fedora 7 testing repository. If problems still persist, please make note of it in this bug report. yum-utils-1.1.7-1.fc7 has been pushed to the Fedora 7 stable repository. If problems still persist, please make note of it in this bug report. |