diff options
author | Chris Lumens <clumens@redhat.com> | 2008-02-01 10:48:02 -0500 |
---|---|---|
committer | Chris Lumens <clumens@redhat.com> | 2008-02-01 10:48:02 -0500 |
commit | 85415ef7b3969bdf6bea2100064d93a5f36b8939 (patch) | |
tree | 34578b1bfef84525335a86d04c8c0bc5477bd009 /anaconda | |
parent | 20bdc17e45d38ff4466fea988ebd59ff153d784e (diff) | |
download | anaconda-85415ef7b3969bdf6bea2100064d93a5f36b8939.tar.gz anaconda-85415ef7b3969bdf6bea2100064d93a5f36b8939.tar.xz anaconda-85415ef7b3969bdf6bea2100064d93a5f36b8939.zip |
Convert hd:// method strings into something yum understands.
Diffstat (limited to 'anaconda')
-rwxr-xr-x | anaconda | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -570,6 +570,13 @@ class Anaconda: self.mediaDevice = device self.methodstr = "file://" + tree + elif methodstr.startswith("hd://"): + (device, fstype, tree) = string.split(methodstr[5:], ":", 2) + + if not tree.startswith("/"): + tree = "/%s" % tree + + self.methodstr = "file://" + tree else: self.methodstr = methodstr |