---
 yum/yumRepo.py | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/yum/yumRepo.py b/yum/yumRepo.py
index dc84f3d..f409485 100644
--- a/yum/yumRepo.py
+++ b/yum/yumRepo.py
@@ -1607,6 +1607,22 @@ Insufficient space in download directory %s
             # No old repomd data, but we might still have uncompressed MD
             if self._groupCheckDataMDValid(ndata, nmdtype, mdtype):
                 continue
+
+            local = self.cachedir + '/gen/%s.xml' % nmdtype
+            if os.path.exists(local):
+
+                # have /gen uncompressed MD?
+                if self._checkMD(local, nmdtype, openchecksum=True, 
data=ndata, check_can_fail=True):
+                    continue
+
+                # have something old, try deltamd
+                deltamd = self.repoXML.getDelta(nmdtype, 
os.path.getmtime(local))
+                if deltamd:
+                    os.rename(local, local + '.old.tmp')
+                    reverts.append(local)
+                    ndata = deltamd
+                    nmdtype = deltamd.type
+
             downloading.append((ndata, nmdtype))
             newmdfiles.append(self._get_mdtype_fname(ndata, False))
         return downloading
-- 
1.7.11.7

_______________________________________________
Yum-devel mailing list
Yum-devel@lists.baseurl.org
http://lists.baseurl.org/mailman/listinfo/yum-devel

Reply via email to