[Yum-devel] [PATCH] Remove lookup for oldreqs against rpmdb. Huge speedup on big transactions.
James Antill
james at and.org
Thu Nov 11 17:15:03 UTC 2010
This can't be needed for two reasons:
1. We are only lookup for provides in rpmdb, but those providers could
be being removed.
2. This only happens when we have the exact same req in the old and new
pkg. ... so the exact same thing would be true if there was no update.
---
yum/depsolve.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/yum/depsolve.py b/yum/depsolve.py
index f273cff..de2849a 100644
--- a/yum/depsolve.py
+++ b/yum/depsolve.py
@@ -914,7 +914,7 @@ class Depsolve(object):
for req in sorted(txmbr_reqs, key=self._sort_req_key):
if req[0].startswith('rpmlib('):
continue
- if req in oldreqs and self.rpmdb.getProvides(*req):
+ if req in oldreqs:
continue
self.verbose_logger.log(logginglevels.DEBUG_2, _("looking for %s as a requirement of %s"), req, txmbr)
--
1.7.2.3
More information about the Yum-devel
mailing list