[PATCH f16-alpha-branch] Remove "-Alpha" or "-Beta" from yum's $releasever (#728868).

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

 



This means all the metalink mirrormanager stuff will work without having to set
up redirects every release.
---
 pyanaconda/yuminstall.py |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/pyanaconda/yuminstall.py b/pyanaconda/yuminstall.py
index 26c3c46..064cf47 100644
--- a/pyanaconda/yuminstall.py
+++ b/pyanaconda/yuminstall.py
@@ -726,11 +726,13 @@ class AnacondaYum(yum.YumBase):
                                      self.proxy_url,
                                      not flags.noverifyssl)
         if not treeinfo:
-            return productVersion
+            return productVersion.split('-')[0]
 
         ConfigParser.ConfigParser.read(c, treeinfo)
         try:
-            return c.get("general", "version")
+            ver = c.get("general", "version")
+            # Trim off any -Alpha or -Beta
+            return ver.split('-')[0]
         except ConfigParser.Error:
             return productVersion
 
-- 
1.7.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