[yum-git] yum/yumRepo.py

James Antill james at linux.duke.edu
Thu Jan 24 23:47:34 UTC 2008


 yum/yumRepo.py |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

New commits:
commit 5a44686fd00ced7f5b1cf26431bf4a34d762e240
Author: James Antill <james at and.org>
Date:   Thu Jan 24 18:47:31 2008 -0500

    Wrong way around

diff --git a/yum/yumRepo.py b/yum/yumRepo.py
index c8ea463..4e9fa14 100644
--- a/yum/yumRepo.py
+++ b/yum/yumRepo.py
@@ -909,9 +909,11 @@ class YumRepository(Repository, config.RepoConf):
             compressed = (dbmdtype != mmdtype)
             local = self._get_mdtype_fname(data, compressed)
         else:
+            compressed = False
             local = self._get_mdtype_fname(data, False)
             if not os.path.exists(local):
                 local = local.replace('.bz2', '')
+                compressed = True
         if not self._checkMD(local, dbmdtype, openchecksum=compressed,
                              data=data, check_can_fail=True):
             return None
@@ -947,7 +949,7 @@ class YumRepository(Repository, config.RepoConf):
             if old_repo_XML:
                 (omdtype, odata) = self._get_mdtype_data(mdtype,
                                                          repoXML=old_repo_XML)
-                local = self._groupCheckDataMDValid(odata, omdtype,mdtype,False)
+                local = self._groupCheckDataMDValid(odata, omdtype,mdtype,True)
                 if local:
                     if _mdtype_eq(omdtype, odata, nmdtype, ndata):
                         continue # If they are the same do nothing



More information about the Yum-cvs-commits mailing list