[Yum-devel] [PATCH 1/2] retrieve_async: Check for uncompressed files in $cachedir/gen/

Zdeněk Pavlas zpavlas at redhat.com
Thu Nov 8 15:45:43 UTC 2012


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



More information about the Yum-devel mailing list