use a flag to determine if we want an RC or not

This commit is contained in:
Neil Hanlon 2022-06-20 20:12:20 -04:00
parent 7a097fb302
commit 91c01da5cf
Signed by: neil
GPG Key ID: 705BC21EC3C70F34

View File

@ -12,6 +12,7 @@ parser = argparse.ArgumentParser(description="ISO Compose")
parser.add_argument('--release', type=str, help="Major Release Version", required=True)
parser.add_argument('--env', type=str, help="environment", required=True)
parser.add_argument('--rc', action='store_true', help="Release Candidate")
results = parser.parse_args()
rlvars = rldict[results.release]
major = rlvars['major']
@ -30,7 +31,9 @@ def run():
elif results.env == "all":
arches = EKSARCH+EXTARCH
command = ["build-iso", "--release", f"{results.release}", "--rc", "--isolation", "simple"]
command = ["build-iso", "--release", f"{results.release}", "--isolation", "simple"]
if results.rc:
command += ["--rc"]
out = ""
for arch in arches: