Skip to content

Commit

Permalink
Merge pull request rhinstaller#3 from poncovka/master-rh8
Browse files Browse the repository at this point in the history
Add the RHEL8 release
  • Loading branch information
jkonecny12 authored Jan 8, 2019
2 parents e043b33 + bfc5b48 commit 2266bf8
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 1 deletion.
5 changes: 4 additions & 1 deletion anaconda_updates/releases/__init__.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -33,6 +34,8 @@ class Branch(Enum):
rhel7_4 = 24,
rhel7_5 = 25,

rhel8 = 30,


class GeneralBranch(object):
def __init__(self, branch_type,
Expand Down
11 changes: 11 additions & 0 deletions anaconda_updates/releases/rhel8.py
Original file line number Diff line number Diff line change
@@ -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"])
4 changes: 4 additions & 0 deletions scripts/show_version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ do
PACKAGES_URL="rhel7/Packages"
shift
;;
-rh8)
PACKAGES_URL="rhel8/Packages"
shift
;;
-f23)
PACKAGES_URL="fedora23/Packages/a"
shift
Expand Down

0 comments on commit 2266bf8

Please sign in to comment.