summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Fulbright <msf@redhat.com>2003-05-01 19:04:25 +0000
committerMike Fulbright <msf@redhat.com>2003-05-01 19:04:25 +0000
commitbd3ae2e24a410e2444b1b614b8361dbdd2d10bab (patch)
tree93e149c69012efb17587fb75d90acea88a18232e
parentfd6865c9fa4358fae79fdf85acfe4b29de5c99a8 (diff)
downloadanaconda-bd3ae2e24a410e2444b1b614b8361dbdd2d10bab.tar.gz
anaconda-bd3ae2e24a410e2444b1b614b8361dbdd2d10bab.tar.xz
anaconda-bd3ae2e24a410e2444b1b614b8361dbdd2d10bab.zip
cleaner code
-rw-r--r--harddrive.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/harddrive.py b/harddrive.py
index 8bf5df1d2..0bb1d0b6b 100644
--- a/harddrive.py
+++ b/harddrive.py
@@ -118,10 +118,9 @@ class HardDriveInstallMethod(InstallMethod):
except:
log("unable to unmount media")
+ # we cannot remove the partition we are hosting hard drive install from
def protectedPartitions(self):
- rc = []
- rc.append(self.device)
- return rc
+ return [self.device]
def __init__(self, device, type, path, messageWindow, rootPath):
InstallMethod.__init__(self, rootPath)