diff options
author | David Cantrell <dcantrell@redhat.com> | 2009-03-17 11:28:51 -1000 |
---|---|---|
committer | David Cantrell <dcantrell@redhat.com> | 2009-03-18 09:21:50 -1000 |
commit | bd18c5370cacbac9a88074d8b0b66f1824c9cdb7 (patch) | |
tree | 4fdd73fbadebc290aece1fb220bd676a6be4bd40 /yuminstall.py | |
parent | e892c1599e9f8b2694a473bd709b0717aa5cb8b8 (diff) | |
download | anaconda-bd18c5370cacbac9a88074d8b0b66f1824c9cdb7.tar.gz anaconda-bd18c5370cacbac9a88074d8b0b66f1824c9cdb7.tar.xz anaconda-bd18c5370cacbac9a88074d8b0b66f1824c9cdb7.zip |
Use booleans in isys.mount() and isys.umount()
Use True/False over 1/0. It's the future.
Diffstat (limited to 'yuminstall.py')
-rw-r--r-- | yuminstall.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/yuminstall.py b/yuminstall.py index a5de70225..19f31be4c 100644 --- a/yuminstall.py +++ b/yuminstall.py @@ -329,7 +329,7 @@ class AnacondaYum(YumSorter): if self.currentMedia is None: try: isys.mount(self.anaconda.mediaDevice, self.tree, - fstype="iso9660", readOnly=1) + fstype="iso9660", readOnly=True) if verifyMedia(self.tree, discnum, None): self.currentMedia = discnum @@ -355,7 +355,7 @@ class AnacondaYum(YumSorter): try: isys.mount(self.anaconda.mediaDevice, self.tree, - fstype = "iso9660", readOnly = 1) + fstype = "iso9660", readOnly = True) if verifyMedia(self.tree, discnum, self._timestamp): self.currentMedia = discnum @@ -432,7 +432,7 @@ class AnacondaYum(YumSorter): # install instead. images = findIsoImages(self.tree, self.anaconda.intf.messageWindow) if images != {}: - isys.umount(self.tree, removeDir=0) + isys.umount(self.tree, removeDir=False) self.anaconda.methodstr = "nfsiso:%s" % m[4:] self.configBaseURL() return @@ -1367,7 +1367,7 @@ reposdir=/etc/anaconda.repos.d,/tmp/updates/anaconda.repos.d,/tmp/product/anacon if anaconda.dir == DISPATCH_BACK: for d in ("/selinux", "/dev"): try: - isys.umount(anaconda.rootPath + d, removeDir = 0) + isys.umount(anaconda.rootPath + d, removeDir = False) except Exception, e: log.error("unable to unmount %s: %s" %(d, e)) return @@ -1458,7 +1458,7 @@ reposdir=/etc/anaconda.repos.d,/tmp/updates/anaconda.repos.d,/tmp/product/anacon # handling /dev, it gets to be more fun. so just bind mount the # installer /dev log.warning("no dev package, going to bind mount /dev") - isys.mount("/dev", "%s/dev" %(anaconda.rootPath,), bindMount = 1) + isys.mount("/dev", "%s/dev" %(anaconda.rootPath,), bindMount = True) if not upgrade: anaconda.id.storage.fsset.mkDevRoot(anaconda.rootPath) |