summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2007-09-05 13:06:00 +0000
committerChris Lumens <clumens@redhat.com>2007-09-05 13:06:00 +0000
commit49cf331c4f375d48ca14792ac89c8c0ced42ca8a (patch)
treec99c5db6051b3e65a3b1c0fa59357d30c62b6e6d
parent50254b6152bf570b9663df8724229922da41d7e8 (diff)
Don't be as clever breaking the method string up.
-rw-r--r--ChangeLog5
-rw-r--r--harddrive.py6
2 files changed, 7 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index 77426185d..064e6d378 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2007-09-05 Chris Lumens <clumens@redhat.com>
+
+ * harddrive.py (HardDriveInstallMethod.__init__): Don't be as clever
+ breaking the method string up.
+
2007-09-04 Bill Nottingham <notting@redhat.com>
* scripts/upd-instroot (KEEPFILE): Need python-iniparse (#276941)
diff --git a/harddrive.py b/harddrive.py
index e4a9b7641..436e17656 100644
--- a/harddrive.py
+++ b/harddrive.py
@@ -169,14 +169,12 @@ class HardDriveInstallMethod(ImageInstallMethod):
# we cannot remove the partition we are hosting hard drive install from
def protectedPartitions(self):
return [self.device]
-
+
def __init__(self, method, rootPath, intf):
"""@param method hd://device:fstype:/path"""
method = method[5:]
+ (device, fstype, path) = method.split(":", 3)
device = method[0:method.index(":")]
- tmpmethod = method[method.index(":") + 1:]
- fstype = tmpmethod[0:tmpmethod.index("/")]
- path = tmpmethod[tmpmethod.index("/") + 1:]
ImageInstallMethod.__init__(self, method, rootPath, intf)