[Yum-devel] [PATCH 3/3] Fix mergerepo on generated data (groups/pkgtag/etc.)

James Antill james at and.org
Wed Aug 24 21:04:11 UTC 2011


---
 yum/yumRepo.py |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/yum/yumRepo.py b/yum/yumRepo.py
index 91b7dde..a681370 100644
--- a/yum/yumRepo.py
+++ b/yum/yumRepo.py
@@ -1256,6 +1256,11 @@ Insufficient space in download directory %s
 
             # if we have a 'fresh' repomd.xml then update the cookie
             self.setMetadataCookie()
+            #  Also remove any files that are generated ... this can be slightly
+            # non-optimal, in the case where we have to revert, but it's just
+            # sooo much easier to deal with it here.
+            for fname in misc.getFileList(self.cachedir + '/gen', '', []):
+                misc.unlink_f(fname)
 
         if self._repoXML is None:
             self._repoXML = self._parseRepoXML(result)
-- 
1.7.6



More information about the Yum-devel mailing list