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

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



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


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