[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[PATCH] Remove yum cache for anaconda's temporary repos (#593649).



---
 yuminstall.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/yuminstall.py b/yuminstall.py
index 5b6c55b..7c149d8 100644
--- a/yuminstall.py
+++ b/yuminstall.py
@@ -281,7 +281,7 @@ class AnacondaYumRepo(YumRepository):
         cachedir = self.getAttribute('cachedir')
 
         if os.path.isdir(cachedir):
-            if not self.needsNetwork() or self.name == "Installation Repo":
+            if not self.needsNetwork() or self.name == "Installation Repo" or self.id.startswith("anaconda-"):
                 shutil.rmtree(cachedir)
             else:
                 if os.path.exists("%s/headers" % cachedir):
-- 
1.7.0.1


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]