summaryrefslogtreecommitdiffstats
path: root/yuminstall.py
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2009-06-09 14:14:37 -0400
committerChris Lumens <clumens@redhat.com>2009-06-10 09:38:10 -0400
commit64347feac3dbd27bcf1d268218de7eb36f4db9b3 (patch)
tree0136c5ca6f8e3c45f3b0431bc27c85e6985c6ca7 /yuminstall.py
parentcac1b732a6378ff9d17f56dd20b66a46a04bc998 (diff)
downloadanaconda-64347feac3dbd27bcf1d268218de7eb36f4db9b3.tar.gz
anaconda-64347feac3dbd27bcf1d268218de7eb36f4db9b3.tar.xz
anaconda-64347feac3dbd27bcf1d268218de7eb36f4db9b3.zip
Remove problem packages before attempting a re-download (#501887).
Diffstat (limited to 'yuminstall.py')
-rw-r--r--yuminstall.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/yuminstall.py b/yuminstall.py
index 82ba256de..70635951a 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: