---
 yum/repos.py   | 1 +
 yum/yumRepo.py | 4 ++--
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/yum/repos.py b/yum/repos.py
index f1c24a9..eb60ed0 100644
--- a/yum/repos.py
+++ b/yum/repos.py
@@ -112,6 +112,7 @@ class RepoStorage:
             if error[0]: # some MD failed?
                 repo._revertOldRepoXML()
             else:
+                # note: this might revert, too
                 repo._commonRetrieveDataMD_done(downloading)
 
     def doSetup(self, thisrepo = None):
diff --git a/yum/yumRepo.py b/yum/yumRepo.py
index 3a85578..dc84f3d 100644
--- a/yum/yumRepo.py
+++ b/yum/yumRepo.py
@@ -1526,8 +1526,7 @@ Insufficient space in download directory %s
             if not self._retrieveMD(nmdtype, retrieve_can_fail=True):
                 self._revertOldRepoXML()
                 return False
-        self._commonRetrieveDataMD_done(downloading)
-        return True
+        return self._commonRetrieveDataMD_done(downloading)
 
     def _commonRetrieveDataMD_list(self, mdtypes):
         """ Return a list of metadata to be retrieved """
@@ -1618,6 +1617,7 @@ Insufficient space in download directory %s
         for (ndata, nmdtype) in downloading:
             local = self._get_mdtype_fname(ndata, False)
         self._doneOldRepoXML()
+        return True
 
     def _groupLoadRepoXML(self, text=None, mdtypes=None):
         """ Retrieve the new repomd.xml from the repository, then check it
-- 
1.7.11.7

_______________________________________________
Yum-devel mailing list
[email protected]
http://lists.baseurl.org/mailman/listinfo/yum-devel

Reply via email to