summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2009-08-10 11:44:28 -0400
committerChris Lumens <clumens@redhat.com>2009-08-10 17:37:04 -0400
commit8a621b48f873b7dec2fd7a07eb1b6f39a8a60807 (patch)
tree4c522a9f6881f3eb05a0df5cfa523e3bbe2e5a01
parentd5b1d53029d4a8a6a4f56407f017c466775ee7af (diff)
downloadanaconda-8a621b48f873b7dec2fd7a07eb1b6f39a8a60807.tar.gz
anaconda-8a621b48f873b7dec2fd7a07eb1b6f39a8a60807.tar.xz
anaconda-8a621b48f873b7dec2fd7a07eb1b6f39a8a60807.zip
Don't to unmount /mnt/source unless something's mounted there (#516304).
-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()