From bfc5b4868d0c6890bcd0a4006362777c2468f088 Mon Sep 17 00:00:00 2001 From: Vendula Poncova Date: Thu, 6 Dec 2018 14:44:03 +0100 Subject: [PATCH] Add the RHEL8 release --- anaconda_updates/releases/__init__.py | 5 ++++- anaconda_updates/releases/rhel8.py | 11 +++++++++++ scripts/show_version.sh | 4 ++++ 3 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 anaconda_updates/releases/rhel8.py diff --git a/anaconda_updates/releases/__init__.py b/anaconda_updates/releases/__init__.py index b6f0985..09eca6e 100644 --- a/anaconda_updates/releases/__init__.py +++ b/anaconda_updates/releases/__init__.py @@ -1,7 +1,8 @@ __all__ = ["Branch", "GeneralBranch", "master", "f22", "f23", "f24", "f25", "f26", "f27", "f28", "f29", "rhel6", "rhel6_8", - "rhel7", "rhel7_1", "rhel7_2", "rhel7_3", "rhel7_4", "rhel7_5"] + "rhel7", "rhel7_1", "rhel7_2", "rhel7_3", "rhel7_4", "rhel7_5", + "rhel8"] import subprocess import os @@ -33,6 +34,8 @@ class Branch(Enum): rhel7_4 = 24, rhel7_5 = 25, + rhel8 = 30, + class GeneralBranch(object): def __init__(self, branch_type, diff --git a/anaconda_updates/releases/rhel8.py b/anaconda_updates/releases/rhel8.py new file mode 100644 index 0000000..94925ed --- /dev/null +++ b/anaconda_updates/releases/rhel8.py @@ -0,0 +1,11 @@ +from . import GeneralBranch, Branch + + +class Rhel8Branch(GeneralBranch): + + def __init__(self): + super().__init__(branch_type=Branch.rhel8, + cmd_args=["-rh8", "--rhel8"], + help="working on RHEL 8", + img_name="rhel8_updates.img", + version_script_params=["-rh8", "-p"]) diff --git a/scripts/show_version.sh b/scripts/show_version.sh index 7f78779..ef50836 100755 --- a/scripts/show_version.sh +++ b/scripts/show_version.sh @@ -18,6 +18,10 @@ do PACKAGES_URL="rhel7/Packages" shift ;; + -rh8) + PACKAGES_URL="rhel8/Packages" + shift + ;; -f23) PACKAGES_URL="fedora23/Packages/a" shift