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 303924 Details for
Bug 443976
gnome-packagekit displays uninstalled packages twice
[?]
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]
suggested pacth
pk-match-repo-name.patch (text/plain), 1.55 KB, created by
Richard Hughes
on 2008-04-27 23:09:42 UTC
(
hide
)
Description:
suggested pacth
Filename:
MIME Type:
Creator:
Richard Hughes
Created:
2008-04-27 23:09:42 UTC
Size:
1.55 KB
patch
obsolete
>diff --git a/backends/yum/helpers/yumBackend.py b/backends/yum/helpers/yumBackend.py >index ab7c1db..387ee9e 100644 >--- a/backends/yum/helpers/yumBackend.py >+++ b/backends/yum/helpers/yumBackend.py >@@ -630,7 +630,7 @@ class PackageKitYumBackend(PackageKitBaseBackend): > e = v = r = a = None > # search the rpmdb for the nevra > pkgs = self.yumbase.rpmdb.searchNevra(name=n,epoch=e,ver=v,rel=r,arch=a) >- # if the package is found, then return it >+ # if the package is found, then return it (do not have to match the repo_id) > if len(pkgs) != 0: > return pkgs[0],True > # search the pkgSack for the nevra >@@ -638,11 +638,18 @@ class PackageKitYumBackend(PackageKitBaseBackend): > pkgs = self.yumbase.pkgSack.searchNevra(name=n,epoch=e,ver=v,rel=r,arch=a) > except yum.Errors.RepoError,e: > self.error(ERROR_REPO_NOT_AVAILABLE,str(e)) >- # if the package is found, then return it >- if len(pkgs) != 0: >- return pkgs[0],False >- else: >+ # nothing found >+ if len(pkgs) == 0: > return None,False >+ # one NEVRA in a single repo >+ if len(pkgs) == 1: >+ return pkgs[0],False >+ # we might have the same NEVRA in multiple repos, match by repo name >+ for pkg in pkgs: >+ if d == pkg.repoid: >+ return pkg,False >+ # repo id did not match >+ return None,False > > def _get_pkg_requirements(self,pkg,reqlist=[]): > pkgs = self.yumbase.rpmdb.searchRequires(pkg.name)
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 443976
:
303625
| 303924