summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2008-04-18 16:06:16 -0400
committerJeremy Katz <katzj@redhat.com>2008-04-18 16:06:16 -0400
commitb3d1e45042843693b2181714296756ce5c2ba7ae (patch)
treedf20d23c61c4194834d3b0e924272e98703717f4
parent22916b58a5983739d3c4a4442278cc0728175e90 (diff)
downloadanaconda-b3d1e45042843693b2181714296756ce5c2ba7ae.tar.gz
anaconda-b3d1e45042843693b2181714296756ce5c2ba7ae.tar.xz
anaconda-b3d1e45042843693b2181714296756ce5c2ba7ae.zip
Listing the directories before expiring yum caches helps
-rw-r--r--yuminstall.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/yuminstall.py b/yuminstall.py
index f940cb640..f18b575e3 100644
--- a/yuminstall.py
+++ b/yuminstall.py
@@ -1576,7 +1576,7 @@ class YumBackend(AnacondaBackend):
# expire yum caches on upgrade
if anaconda.id.getUpgrade() and os.path.exists("%s/var/cache/yum" %(anaconda.rootPath,)):
log.info("Expiring yum caches")
- for d in "%s/var/cache/yum" %(anaconda.rootPath,):
+ for d in os.listdir("%s/var/cache/yum" %(anaconda.rootPath,)):
try:
os.unlink("%s/var/cache/yum/%s/cachecookie" %(anaconda.rootPath, d))
except: