qubes-installer-qubes-os/pykickstart/0001-Default-to-the-F21-version-of-kickstart-syntax.patch

46 lines
1.7 KiB
Diff
Raw Normal View History

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
F23 = 21000
2015-03-22 23:11:28 +00:00
-# This always points at the latest version and is the default.
-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 = {
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):
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")
@@ -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")
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")