fix up some things

This commit is contained in:
Louis Abel 2021-11-13 22:43:11 -07:00
parent 17f819cb13
commit 7903b524d1
Signed by: label
GPG Key ID: B37E62D143879B36
2 changed files with 8 additions and 1 deletions

View File

@ -63,6 +63,13 @@ MODS=(
# functions # functions
# Note, EL8 and EL9 may not be the same, do not put in 'common' # Note, EL8 and EL9 may not be the same, do not put in 'common'
function treeinfoSaver() {
BaseOSArch="${1}"
TREEINFO_VAR="${STAGING_ROOT}/${RELEASE_DIR}/BaseOS/${BaseOSArch}/os/.treeinfo"
PRISTINE_TREE="${STAGING_ROOT}/${RELEASE_DIR}/BaseOS/${BaseOSArch}/os/.treeinfo-pristine"
/bin/cp "${TREEINFO_VAR}" "${PRISTINE_TREE}"
}
function treeinfoFixer() { function treeinfoFixer() {
BaseOSArch="${1}" BaseOSArch="${1}"
TREEINFO_VAR="${STAGING_ROOT}/${RELEASE_DIR}/BaseOS/${BaseOSArch}/os/.treeinfo" TREEINFO_VAR="${STAGING_ROOT}/${RELEASE_DIR}/BaseOS/${BaseOSArch}/os/.treeinfo"
@ -134,7 +141,6 @@ from configparser import ConfigParser
config = ConfigParser() config = ConfigParser()
config.read('${TREEINFO_VAR}') config.read('${TREEINFO_VAR}')
config.set('tree', 'variants', 'BaseOS,AppStream') config.set('tree', 'variants', 'BaseOS,AppStream')
config.add_section('variant-AppStream')
config.set('variant-AppStream', 'id', 'AppStream') config.set('variant-AppStream', 'id', 'AppStream')
config.set('variant-AppStream', 'name', 'AppStream') config.set('variant-AppStream', 'name', 'AppStream')
config.set('variant-AppStream', 'type', 'variant') config.set('variant-AppStream', 'type', 'variant')

View File

@ -87,6 +87,7 @@ for ARCH in "${ARCHES[@]}"; do
echo "Ensuring treeinfo is correct" echo "Ensuring treeinfo is correct"
treeinfoModder "${ARCH}" treeinfoModder "${ARCH}"
treeinfoModderKickstart "${ARCH}" treeinfoModderKickstart "${ARCH}"
treeinfoSaver "${ARCH}"
done done
# sign all repos # sign all repos