summaryrefslogtreecommitdiffstats
path: root/yuminstall.py
diff options
context:
space:
mode:
Diffstat (limited to 'yuminstall.py')
-rw-r--r--yuminstall.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/yuminstall.py b/yuminstall.py
index 84445b018..a56fd71af 100644
--- a/yuminstall.py
+++ b/yuminstall.py
@@ -1036,7 +1036,7 @@ reposdir=/etc/anaconda.repos.d,/tmp/updates/anaconda.repos.d,/tmp/product/anacon
"%s/var/cache/yum/%s" %(anaconda.rootPath, repo))
except Exception, e:
log.debug("Error setting up media repository: %s" %(e,))
- else:
+ elif os.path.exists(self.ayum.tree) and os.path.ismount(self.ayum.tree):
isys.umount(self.ayum.tree)
anaconda.backend.removeInstallImage()