2016-03-13 23:27:58 +00:00
|
|
|
diff --git a/pykickstart/version.py b/pykickstart/version.py
|
|
|
|
index 379f13f..f107cef 100644
|
|
|
|
--- a/pykickstart/version.py
|
|
|
|
+++ b/pykickstart/version.py
|
|
|
|
@@ -83,8 +83,8 @@ F21 = 19000
|
2015-03-22 23:11:28 +00:00
|
|
|
F22 = 20000
|
2016-03-13 23:27:58 +00:00
|
|
|
F23 = 21000
|
2015-03-22 23:11:28 +00:00
|
|
|
|
|
|
|
-# This always points at the latest version and is the default.
|
2016-03-13 23:27:58 +00:00
|
|
|
-DEVEL = F23
|
2015-03-22 23:11:28 +00:00
|
|
|
+# Point to the proper version of kickstart syntax for this release.
|
|
|
|
+DEVEL = F21
|
|
|
|
|
|
|
|
# A one-to-one mapping from string representations to version numbers.
|
|
|
|
versionMap = {
|
2016-03-13 23:27:58 +00:00
|
|
|
diff --git a/tests/version.py b/tests/version.py
|
|
|
|
index acb79cd..f0b9c29 100644
|
|
|
|
--- a/tests/version.py
|
|
|
|
+++ b/tests/version.py
|
|
|
|
@@ -155,16 +155,6 @@ class StringToVersion_TestCase(CommandTest):
|
2015-03-22 23:11:28 +00:00
|
|
|
class VersionToString_TestCase(CommandTest):
|
|
|
|
def runTest(self):
|
2016-03-13 23:27:58 +00:00
|
|
|
|
2015-03-22 23:11:28 +00:00
|
|
|
- # Make sure DEVEL is the highest version, but RHEL versions aren't
|
|
|
|
- # counted as devel.
|
|
|
|
- highest = 0
|
|
|
|
- for (ver_str,ver_num) in list(versionMap.items()):
|
|
|
|
- if ver_str.startswith("RHEL"):
|
|
|
|
- continue
|
|
|
|
-
|
|
|
|
- highest = max(ver_num, highest)
|
|
|
|
- self.assertEqual(highest, DEVEL)
|
|
|
|
-
|
|
|
|
# FC series
|
|
|
|
self.assertEqual(versionToString(FC3), "FC3")
|
|
|
|
self.assertEqual(versionToString(FC4), "FC4")
|
2016-03-13 23:27:58 +00:00
|
|
|
@@ -191,7 +181,7 @@ class VersionToString_TestCase(CommandTest):
|
2015-03-22 23:11:28 +00:00
|
|
|
self.assertEqual(versionToString(F21, skipDevel=True), "F21")
|
|
|
|
self.assertEqual(versionToString(F22, skipDevel=True), "F22")
|
2016-03-13 23:27:58 +00:00
|
|
|
self.assertEqual(versionToString(F23, skipDevel=True), "F23")
|
|
|
|
- self.assertEqual(versionToString(F23, skipDevel=False), "DEVEL")
|
2015-03-22 23:11:28 +00:00
|
|
|
+ self.assertEqual(versionToString(F21, skipDevel=False), "DEVEL")
|
|
|
|
# RHEL series
|
|
|
|
self.assertEqual(versionToString(RHEL3), "RHEL3")
|
|
|
|
self.assertEqual(versionToString(RHEL4), "RHEL4")
|