[master 2/3] Remove the dnf cache directory when resetting the repo

dashea installerbot-noreply at redhat.com
Wed Mar 25 21:39:12 UTC 2015


From: David Shea <dshea at redhat.com>

Otherwise dnf will continue to use the old repodata.
---
 pyanaconda/packaging/dnfpayload.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/pyanaconda/packaging/dnfpayload.py b/pyanaconda/packaging/dnfpayload.py
index a2532e0..1caea40 100644
--- a/pyanaconda/packaging/dnfpayload.py
+++ b/pyanaconda/packaging/dnfpayload.py
@@ -668,6 +668,7 @@ def preInstall(self, packages=None, groups=None):
 
     def reset(self):
         super(DNFPayload, self).reset()
+        shutil.rmtree(DNF_CACHE_DIR, ignore_errors=True)
         self.txID = None
         self._base.reset(sack=True, repos=True)
 


-- 
To view this commit on github, visit https://github.com/rhinstaller/anaconda/commit/ca82bcb7747aa18af2a6e554d6e9744a05088f8c


More information about the anaconda-patches mailing list