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 575045 Details for
Bug 748790
yumBackend.py loads CPU to 100% and takes too long
[?]
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]
Algorithm patch for filter.py
pk-yum-filter.patch (text/plain), 1.23 KB, created by
Tomáš Trnka
on 2012-04-04 07:07:09 UTC
(
hide
)
Description:
Algorithm patch for filter.py
Filename:
MIME Type:
Creator:
Tomáš Trnka
Created:
2012-04-04 07:07:09 UTC
Size:
1.23 KB
patch
obsolete
>--- filter.py.orig 2012-04-03 22:27:26.919105132 +0200 >+++ filter.py 2012-04-04 08:51:37.144966295 +0200 >@@ -21,6 +21,7 @@ > # imports > from enums import * > from package import PackagekitPackage >+import collections > > class PackagekitFilter(object, PackagekitPackage): > >@@ -83,6 +84,12 @@ > if self._filter_base(pkg): > self.package_list.append((pkg, state)) > >+ # prepare lookup table of installed packages >+ installed_dict = collections.defaultdict(list) >+ for pkg, state in self.package_list: >+ if state is INFO_INSTALLED: >+ installed_dict[self._pkg_get_name(pkg)].append(pkg) >+ > # check there are not available versions in the package list > # that are older than the installed version > package_list = self.package_list >@@ -91,9 +98,7 @@ > > add = True; > if state is INFO_AVAILABLE: >- for pkg_tmp, state_tmp in self.package_list: >- if state_tmp is not INFO_INSTALLED: >- continue >+ for pkg_tmp in installed_dict[self._pkg_get_name(pkg)]: > rc = self._pkg_compare(pkg, pkg_tmp) > > # don't add if the same as the installed package
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 748790
:
569687
|
570946
|
570947
| 575045