From 462ea264b3c8fde4ed028b7df6ed000a958dff96 Mon Sep 17 00:00:00 2001 From: Louis Abel Date: Sun, 3 Jul 2022 00:22:00 -0700 Subject: [PATCH] add finalize script to mix --- .../empanadas/scripts/finalize_compose.py | 35 +++++++++++++++++++ iso/empanadas/pyproject.toml | 1 + 2 files changed, 36 insertions(+) create mode 100755 iso/empanadas/empanadas/scripts/finalize_compose.py diff --git a/iso/empanadas/empanadas/scripts/finalize_compose.py b/iso/empanadas/empanadas/scripts/finalize_compose.py new file mode 100755 index 0000000..9cc8139 --- /dev/null +++ b/iso/empanadas/empanadas/scripts/finalize_compose.py @@ -0,0 +1,35 @@ +# This script can be called to do single syncs or full on syncs. + +import argparse + +from empanadas.common import * +from empanadas.util import Checks +from empanadas.util import RepoSync + +# Start up the parser baby +parser = argparse.ArgumentParser(description="Peridot Sync and Compose") + +# All of our options +parser.add_argument('--release', type=str, help="Major Release Version or major-type (eg 9-beta)", required=True) +parser.add_argument('--arch', type=str, help="Architecture") +parser.add_argument('--logger', type=str) + +# Parse them +results = parser.parse_args() +rlvars = rldict[results.release] +major = rlvars['major'] + +r = Checks(rlvars, config['arch']) +r.check_valid_arch() + +# Send them and do whatever I guess +a = RepoSync( + rlvars, + config, + major=major, + arch=results.arch, + logger=results.logger, +) + +def run(): + a.run_compose_closeout() diff --git a/iso/empanadas/pyproject.toml b/iso/empanadas/pyproject.toml index 82ea835..3f25a19 100644 --- a/iso/empanadas/pyproject.toml +++ b/iso/empanadas/pyproject.toml @@ -29,6 +29,7 @@ build-iso-extra = "empanadas.scripts.build_iso_extra:run" pull-unpack-tree = "empanadas.scripts.pull_unpack_tree:run" launch-builds = "empanadas.scripts.launch_builds:run" build-image = "empanadas.scripts.build_image:run" +finalize_compose = "empanadas.scripts.finalize_compose:run" [build-system] requires = ["poetry-core>=1.0.0"]