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 158479 Details for
Bug 246678
conduit.delPackage() extremely slow with newer yum
[?]
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]
Dirty and temporary workaround
fix_yum_slowness.sh (text/plain), 2.12 KB, created by
Stéphane Lesimple
on 2007-07-03 21:34:53 UTC
(
hide
)
Description:
Dirty and temporary workaround
Filename:
MIME Type:
Creator:
Stéphane Lesimple
Created:
2007-07-03 21:34:53 UTC
Size:
2.12 KB
patch
obsolete
>diff -Naur yum_original/__init__.py yum/__init__.py >--- yum_original/__init__.py 2007-07-01 19:50:58.000000000 +0200 >+++ yum/__init__.py 2007-07-01 20:00:22.000000000 +0200 >@@ -368,6 +368,9 @@ > self.excludePackages(repo) > self.includePackages(repo) > self.plugins.run('exclude') >+#STFSTF >+ self._pkgSack.updatePkgList() >+#/STFSTF > self._pkgSack.buildIndexes() > > return self._pkgSack >diff -Naur yum_original/packageSack.py yum/packageSack.py >--- yum_original/packageSack.py 2007-07-01 19:50:57.000000000 +0200 >+++ yum/packageSack.py 2007-07-01 20:03:51.000000000 +0200 >@@ -286,6 +286,11 @@ > for sack in self.sacks.values(): > sack.buildIndexes() > >+#STFSTF >+ def updatePkgList(self): >+ self._computeAggregateListResult("updatePkgList") >+#/STFSTF >+ > def delPackage(self, obj): > """Delete a pkgobject if it exists in every sub-sack.""" > obj.repo.sack.delPackage(obj) >diff -Naur yum_original/plugins.py yum/plugins.py >--- yum_original/plugins.py 2007-07-01 19:50:57.000000000 +0200 >+++ yum/plugins.py 2007-07-01 20:03:41.000000000 +0200 >@@ -506,6 +506,11 @@ > def delPackage(self, po): > self._base.pkgSack.delPackage(po) > >+#STFSTF >+ def updatePkgList(self): >+ self._base.pkgSack.updatePkgList() >+#/STFSTF >+ > def getTsInfo(self): > return self._base.tsInfo > >diff -Naur yum_original/sqlitesack.py yum/sqlitesack.py >--- yum_original/sqlitesack.py 2007-07-01 19:50:57.000000000 +0200 >+++ yum/sqlitesack.py 2007-07-01 20:03:29.000000000 +0200 >@@ -231,6 +231,12 @@ > def _checkIndexes(self, failure='error'): > return > >+#STFSTF >+ def updatePkgList(self): >+ self.pkglist = None >+ self.simplePkgList >+#/STFSTF >+ > # Remove a package > # Because we don't want to remove a package from the database we just > # add it to the exclude list >@@ -238,7 +244,7 @@ > if not self.excludes.has_key(obj.repo): > self.excludes[obj.repo] = {} > self.excludes[obj.repo][obj.pkgId] = 1 >- self.pkglist = None >+#STFSTF self.pkglist = None > > > def _excluded(self, repo, pkgId): >
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 246678
: 158479