[PATCH 5/8] Fix parsing of repo=hd into ksdata.method. | |
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] | |
---
anaconda | 13 +++++++++----
1 files changed, 9 insertions(+), 4 deletions(-)
diff --git a/anaconda b/anaconda
index 9f7de2e..e76e977 100755
--- a/anaconda
+++ b/anaconda
@@ -739,10 +739,15 @@ if __name__ == "__main__":
elif anaconda.methodstr.startswith("hd:"):
ksdata.method.method = "harddrive"
url = anaconda.methodstr.split(":", 1)[1]
- if url.count(":") == 1:
- (device, path) = url.split(":")
- else:
- (device, fstype, path) = url.split(":")
+ url_parts = url.split(":")
+ device = url_parts[0]
+ path = ""
+ if len(url_parts) == 2:
+ path = url_parts[1]
+ elif len(url_parts) == 3:
+ fstype = url_parts[1] # XXX not used
+ path = url_parts[2]
+
ksdata.method.partition = device
ksdata.method.dir = path
elif anaconda.methodstr.startswith("http") or \
--
1.7.7.6
_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
[Home] [Fedora Users] [Fedora Legacy List] [Fedora Maintainers] [Fedora Desktop] [Red Hat 9 Bible] [Fedora Bible] [Fedora SELinux] [Big List of Linux Books] [Yosemite News] [Yosemite Photos] [KDE Users] [Fedora Tools]