We were only looking at the old location, so _retrieveMD()
was checksumming compressed MD files on every run.

Avoiding the checksums makes 'yum info info' about 15% faster.
---
 yum/yumRepo.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/yum/yumRepo.py b/yum/yumRepo.py
index 4601ef6..4eb4697 100644
--- a/yum/yumRepo.py
+++ b/yum/yumRepo.py
@@ -140,7 +140,7 @@ class YumPackageSack(packageSack.PackageSack):
                 continue
 
             if self._check_db_version(repo, mydbtype):
-                if not self._check_uncompressed_db(repo, mydbtype):
+                if not self._check_uncompressed_db_gen(repo, mydbtype):
                     repo._retrieveMD(mydbtype, async=True, failfunc=None)
 
     def populate(self, repo, mdtype='metadata', callback=None, cacheonly=0):
-- 
1.7.4.4

_______________________________________________
Yum-devel mailing list
[email protected]
http://lists.baseurl.org/mailman/listinfo/yum-devel

Reply via email to