diff options
author | Chris Lumens <clumens@redhat.com> | 2008-01-08 11:16:48 -0500 |
---|---|---|
committer | Chris Lumens <clumens@redhat.com> | 2008-01-08 11:16:48 -0500 |
commit | 2af43bddb0c556057efa5062e391d41728a57f2f (patch) | |
tree | 3507e8d8e039530b80684dae5c3c714b46e35637 /yuminstall.py | |
parent | 91b757f66bc9a5254a54a8a90c27d7d8820be4e5 (diff) | |
download | anaconda-2af43bddb0c556057efa5062e391d41728a57f2f.tar.gz anaconda-2af43bddb0c556057efa5062e391d41728a57f2f.tar.xz anaconda-2af43bddb0c556057efa5062e391d41728a57f2f.zip |
Erase temporary packages after installing them on all methods.
Diffstat (limited to 'yuminstall.py')
-rw-r--r-- | yuminstall.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/yuminstall.py b/yuminstall.py index d676d1641..9504add1f 100644 --- a/yuminstall.py +++ b/yuminstall.py @@ -195,8 +195,7 @@ class AnacondaCallback: self.openfile = None repo = self.repos.getRepo(self.inProgressPo.repoid) - if (len(filter(lambda u: u.startswith("file:"), repo.baseurl)) == 0 - or os.path.dirname(fn) == "%s/var/cache/yum/anaconda-upgrade/packages" %(self.rootPath,)): + if os.path.dirname(fn).startswith("/tmp/cache/"): try: os.unlink(fn) except OSError, e: |