[PATCH 2/2] Set yum releasever before triggering read of configuration.

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

 



---
 pyanaconda/packaging/yumpayload.py |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/pyanaconda/packaging/yumpayload.py b/pyanaconda/packaging/yumpayload.py
index 7277413..cd8a92e 100644
--- a/pyanaconda/packaging/yumpayload.py
+++ b/pyanaconda/packaging/yumpayload.py
@@ -371,14 +371,13 @@ reposdir=/etc/yum.repos.d,/etc/anaconda.repos.d,/tmp/updates/anaconda.repos.d,/t
                 raise PayloadSetupError("no usable optical media found")
 
         if method.method:
+            self._yum.preconf.releasever = self._getReleaseVersion(url)
             try:
                 self._addYumRepo(BASE_REPO_NAME, url,
                                  proxy=proxy, sslverify=sslverify)
             except MetadataError as e:
                 self._removeYumRepo(BASE_REPO_NAME)
                 raise
-            else:
-                self._yum.preconf.releasever = self._getReleaseVersion(url)
 
     def configureAddOnRepo(self, repo):
         """ Configure a single ksdata repo. """
-- 
1.7.9.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