From 2f4577e5549c19a3aacddd38c0670d48b283bd3c Mon Sep 17 00:00:00 2001 From: Louis Abel Date: Fri, 8 Sep 2023 02:18:09 -0700 Subject: [PATCH] add extras for beta --- extras-beta.conf | 61 ++++++++++++++++++++++++++++++++ scripts/updates-8-extras-beta.sh | 30 ++++++++++++++++ 2 files changed, 91 insertions(+) create mode 100644 extras-beta.conf create mode 100755 scripts/updates-8-extras-beta.sh diff --git a/extras-beta.conf b/extras-beta.conf new file mode 100644 index 0000000..4219ac6 --- /dev/null +++ b/extras-beta.conf @@ -0,0 +1,61 @@ +from shared/extras import * + +release_name = "Rocky Linux Extras" +release_short = "Extras" +release_version = "8" +release_is_layered = False + +variants_file='variants-extras.xml' +sigkeys = ['6D745A60'] +create_jigdo = False + +pkgset_source='koji' + +pkgset_koji_tag='dist-rocky8-prep-compose' +pkgset_koji_inherit = True +gather_method = { + '^.*': { # For all variants + 'comps': 'nodeps', # resolve dependencies for packages from comps file + 'module': 'nodeps', # but not for packages from modules + } +} + +gather_backend = 'dnf' +greedy_method = 'build' +koji_profile = "koji" + +createrepo_deltas = False +createrepo_database = True +createrepo_c = True +createrepo_checksum = "sha256" +createrepo_use_xz = True +createrepo_num_threads = 8 +createrepo_num_workers = 8 +createrepo_extra_args = ['--distro=cpe:/o:rocky:rocky:8,Rocky Linux 8', '--revision=8.10'] +hashed_directories = True + +check_deps = False + +#filter_packages = [ +# ('^extras$', { +# '*': [ +# 'rocky-gpg-keys', +# 'rocky-repos', +# ], +# }), +#] + +#additional_packages = [ +# ('^extras$', { +# '*': [ +# '*', +# ], +# }), +#] + +createiso_skip = [ + ('^.*$', { + '*': True, + 'src': True + }), +] diff --git a/scripts/updates-8-extras-beta.sh b/scripts/updates-8-extras-beta.sh new file mode 100755 index 0000000..e644df2 --- /dev/null +++ b/scripts/updates-8-extras-beta.sh @@ -0,0 +1,30 @@ +#!/bin/bash + +source "$(dirname "$0")/common-8" +TARGET_DIR="/mnt/compose/8-LookAhead" +SHORT=Extras +CONFIG=/etc/pungi-beta/extras-beta.conf +# Unused for now +OLDCOMPOSE_ID=$(cat $TARGET_DIR/latest-$SHORT-8/COMPOSE_ID) +SKIP="--skip-phase buildinstall --skip-phase createiso --skip-phase extra_isos --skip-phase productimg" +LABEL="--test" +CMD="pungi-koji --config=$CONFIG --old-composes=$TARGET_DIR $OLD_COMPOSES_DIR $SKIP $LABEL" + +if [ -z "$COMPOSE_ID" ]; then + CMD="$CMD --target-dir=$TARGET_DIR" +else + CMD="$CMD --debug-mode --compose-dir=$TARGET_DIR/$COMPOSE_ID" +fi + +time $CMD +ret_val=$? + +if [[ "$ret_val" != "0" ]]; then + if [[ "$MAILNOTIF" == "yes" ]]; then + echo "This is a notification that a recent lookahead $SHORT compose failed on $(hostname)" | mutt -e "set from=\"$FROM\"" \ + -e 'set envelope_from=yes' \ + -s "Compose $NEWCOMPOSE_ID failed (for Rocky Linux $REVISION)" \ + releng@rockylinux.org + fi + exit 1 +fi