diff options
author | Jeremy Katz <katzj@redhat.com> | 2008-04-18 16:06:16 -0400 |
---|---|---|
committer | Jeremy Katz <katzj@redhat.com> | 2008-04-18 16:06:16 -0400 |
commit | b3d1e45042843693b2181714296756ce5c2ba7ae (patch) | |
tree | df20d23c61c4194834d3b0e924272e98703717f4 /yuminstall.py | |
parent | 22916b58a5983739d3c4a4442278cc0728175e90 (diff) | |
download | anaconda-b3d1e45042843693b2181714296756ce5c2ba7ae.tar.gz anaconda-b3d1e45042843693b2181714296756ce5c2ba7ae.tar.xz anaconda-b3d1e45042843693b2181714296756ce5c2ba7ae.zip |
Listing the directories before expiring yum caches helps
Diffstat (limited to 'yuminstall.py')
-rw-r--r-- | yuminstall.py | 2 |
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: |