[PATCH] Remove double slash from nfs:// ks repo value for use in UI.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Boot repo parameter doesn't use slashes and we have to handle nfs urls from
both sources the same way in UI.
---
 yuminstall.py |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/yuminstall.py b/yuminstall.py
index 1c54318..4379bbc 100644
--- a/yuminstall.py
+++ b/yuminstall.py
@@ -672,7 +672,9 @@ class AnacondaYum(YumSorter):
                     except Exception as e:
                         log.error("error mounting NFS repo: %s" % e)
 
-                    anacondaBaseURLs = [ksrepo.baseurl]
+                    # Get rid of two slashes in nfs:// prefix, boot repo param
+                    # doesn't use them.
+                    anacondaBaseURLs = ["nfs:" + ksrepo.baseurl[6:]]
                     ksrepo.baseurl = "file://%s" % dest
 
                 repo = AnacondaYumRepo(ksrepo.name)
-- 
1.6.0.6

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux