Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 161723 Details for
Bug 246519
repoquery --whatprovides fails for some directories
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Workaround patch
repoquery-rootdir.patch (text/plain), 1.21 KB, created by
Panu Matilainen
on 2007-08-17 09:19:13 UTC
(
hide
)
Description:
Workaround patch
Filename:
MIME Type:
Creator:
Panu Matilainen
Created:
2007-08-17 09:19:13 UTC
Size:
1.21 KB
patch
obsolete
>diff --git a/repoquery.py b/repoquery.py >index 0dfc29c..49e6ba9 100755 >--- a/repoquery.py >+++ b/repoquery.py >@@ -353,10 +353,15 @@ class YumBaseQuery(yum.YumBase): > > return pkgs > >- def returnPackagesByDep(self, depstring): >+ def returnPackagesByDepStr(self, depstring): > provider = [] > try: >- provider.extend(yum.YumBase.returnPackagesByDep(self, depstring)) >+ # XXX rhbz#246519, for some reason returnPackagesByDep() fails >+ # to find some root level directories while >+ # searchPackageProvides() does... use that for now >+ matches = yum.YumBase.searchPackageProvides(self, [depstring]) >+ provider = matches.keys() >+ # provider.extend(yum.YumBase.returnPackagesByDep(self, depstring)) > except yum.Errors.YumBaseError, err: > self.logger.error("No package provides %s" % depstring) > return self.queryPkgFactory(provider) >@@ -432,7 +437,7 @@ class YumBaseQuery(yum.YumBase): > return grps > > def fmt_whatprovides(self, name, **kw): >- return self.returnPackagesByDep(name) >+ return self.returnPackagesByDepStr(name) > > def fmt_whatrequires(self, name, **kw): > pkgs = {}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 246519
: 161723