summaryrefslogtreecommitdiffstats
path: root/image.py
diff options
context:
space:
mode:
Diffstat (limited to 'image.py')
-rw-r--r--image.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/image.py b/image.py
index 050d8589f..68137d527 100644
--- a/image.py
+++ b/image.py
@@ -303,7 +303,9 @@ class CdromInstallMethod(ImageInstallMethod):
def __init__(self, url, messageWindow, progressWindow, rootPath):
- (self.device, tree) = string.split(url, "/", 1)
+ (self.device, tree) = string.split(url, ":", 1)
+ if not tree.startswith("/"):
+ tree = "/%s" %(tree,)
self.messageWindow = messageWindow
self.progressWindow = progressWindow
self.loopbackFile = None
@@ -324,7 +326,7 @@ class CdromInstallMethod(ImageInstallMethod):
else:
self.currentDisc = [ 1 ]
- ImageInstallMethod.__init__(self, "/" + tree, rootPath)
+ ImageInstallMethod.__init__(self, tree, rootPath)
class NfsInstallMethod(ImageInstallMethod):