[yum-commits] Branch 'yum-3_2_X' - yum/depsolve.py
James Antill
james at osuosl.org
Thu Nov 11 18:46:08 UTC 2010
yum/depsolve.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 04a8202ba73372d74ce06d3b6746f4d18d7a4d43
Author: James Antill <james at and.org>
Date: Thu Nov 11 12:09:23 2010 -0500
Remove lookup for oldreqs against rpmdb. Huge speedup on big transactions.
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.
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)
More information about the Yum-commits
mailing list