[PATCH 1/3] Do not traceback on invalid ks repo --baseurl values (#543003)

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

 



The cause of traceback is that repo._baseurlSetup changes repo.baseurl
attribute (removes all invalid urls from the list) so we have to keep
invalid urls in anacondaBaseURLs to be able to edit it eventually.

_baseurlSetup is called from whiteout plugin for all repos (by repo.retreiveMD)
after setup of first repo

This is a rhel6 bug, should I commit it to rhel6-branch or wait for rebase?

---
 yuminstall.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/yuminstall.py b/yuminstall.py
index accf452..08409d9 100644
--- a/yuminstall.py
+++ b/yuminstall.py
@@ -668,7 +668,7 @@ class AnacondaYum(YumSorter):
                 # yum doesn't understand nfs:// and doesn't want to.  We need
                 # to first do the mount, then translate it into a file:// that
                 # yum does understand.
-                anacondaBaseURLs = []
+                anacondaBaseURLs = [ksrepo.baseurl]
                 if ksrepo.baseurl and ksrepo.baseurl.startswith("nfs://"):
                     if not network.hasActiveNetDev() and not self.anaconda.intf.enableNetwork():
                         self.anaconda.intf.messageWindow(_("No Network Available"),
-- 
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