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

[PATCH] Remove problem packages before attempting a re-download (#501887).



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

diff --git a/yuminstall.py b/yuminstall.py
index 82ba256..7063595 100644
--- a/yuminstall.py
+++ b/yuminstall.py
@@ -675,6 +675,9 @@ class AnacondaYum(YumSorter):
         if rc == 0:
             sys.exit(0)
         else:
+            if os.path.exists(package.localPkg()):
+                os.unlink(package.localPkg())
+
             if not self.isodir and self.currentMedia:
                 self._switchCD(self.currentMedia)
             else:
-- 
1.6.1.3


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