[PATCH] Fix an error when editing an unreachable repo (#503454).

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

 



In certain cases, calling getRepo on "InstallationRepo" causes a RepoError.
When we catch that, we don't set the repo value to anything, so a traceback
results.  Instead we need to fix the fix for creating a new repo.
---
 yuminstall.py |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/yuminstall.py b/yuminstall.py
index e7f1d91..34e3c18 100644
--- a/yuminstall.py
+++ b/yuminstall.py
@@ -473,8 +473,9 @@ class AnacondaYum(YumSorter):
                     repo.baseurl = uri
                 except RepoError:
                     replace = False
-            else:
-                # If there was an error finding the "base" repo, create a new one now.
+
+            # If there was an error finding the "base" repo, create a new one now.
+            if not replace:
                 repo = AnacondaYumRepo("anaconda-%s-%s" % (rid, productStamp))
                 repo.baseurl = uri
 
-- 
1.6.1.3

_______________________________________________
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