An old bug.. new_MD_files list is used when reverting to old metadata to clean up the (possibly partially) downloaded files. _commonRetrieveDataMD_done() is skipped on revert. --- yum/yumRepo.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/yum/yumRepo.py b/yum/yumRepo.py index 764c988..86cb685 100644 --- a/yum/yumRepo.py +++ b/yum/yumRepo.py @@ -1583,7 +1583,7 @@ Insufficient space in download directory %s self._oldRepoMDData['old_MD_files'] = reverts # Inited twice atm. ... sue me - self._oldRepoMDData['new_MD_files'] = [] + newmdfiles = self._oldRepoMDData['new_MD_files'] = [] downloading = [] for mdtype in all_mdtypes: (nmdtype, ndata) = self._get_mdtype_data(mdtype) @@ -1636,6 +1636,7 @@ Insufficient space in download directory %s if self._groupCheckDataMDValid(ndata, nmdtype, mdtype): continue downloading.append((ndata, nmdtype)) + newmdfiles.append(self._get_mdtype_fname(ndata, False)) return downloading def _commonRetrieveDataMD_done(self, downloading): @@ -1643,7 +1644,6 @@ Insufficient space in download directory %s for (ndata, nmdtype) in downloading: local = self._get_mdtype_fname(ndata, False) - self._oldRepoMDData['new_MD_files'].append(local) # Apply delta files if hasattr(ndata, 'original'): -- 1.7.11.7 _______________________________________________ Yum-devel mailing list Yum-devel@lists.baseurl.org http://lists.baseurl.org/mailman/listinfo/yum-devel