[Yum-devel] [PATCH] YumPackageSack.populate(): remove unreachable code

Zdeněk Pavlas zpavlas at redhat.com
Tue Jun 26 13:04:26 UTC 2012


This was obsoleted by repo_gen_decompress() patches.
---
 yum/yumRepo.py |   19 -------------------
 1 files changed, 0 insertions(+), 19 deletions(-)

diff --git a/yum/yumRepo.py b/yum/yumRepo.py
index 128795b..9d9e960 100644
--- a/yum/yumRepo.py
+++ b/yum/yumRepo.py
@@ -160,8 +160,6 @@ class YumPackageSack(packageSack.PackageSack):
                 if item in self.added[repo]:
                     continue
 
-            db_fn = None
-
             if item == 'metadata':
                 mydbtype = 'primary_db'
                 mymdtype = 'primary'
@@ -202,23 +200,6 @@ class YumPackageSack(packageSack.PackageSack):
 
                 dobj = repo.cacheHandler.open_database(db_un_fn)
 
-            elif self._check_db_version(repo, mydbtype):
-                # see if we have the uncompressed db and check it's checksum vs the openchecksum
-                # if not download the compressed file
-                # decompress it
-                # unlink it
-
-                db_un_fn = self._check_uncompressed_db(repo, mydbtype)
-                if not db_un_fn:
-                    db_fn = repo._retrieveMD(mydbtype)
-                    if db_fn:
-                        if not repo.cache:
-                            db_un_fn = misc.decompress(db_fn)
-                            misc.unlink_f(db_fn)
-                            db_un_fn = self._check_uncompressed_db(repo, mydbtype)
-
-                dobj = repo.cacheHandler.open_database(db_un_fn)
-
             else:
                 repo._xml2sqlite_local = True
                 # Download...
-- 
1.7.4.4



More information about the Yum-devel mailing list