actually use the var

This commit is contained in:
nazunalika 2021-07-05 20:06:19 -07:00
parent 4a9b14554c
commit a7ec11e33a
Signed by untrusted user who does not match committer: label
GPG Key ID: 6735C0E1BD65D048

View File

@ -12,7 +12,7 @@
# Compose dir example: /mnt/repos-staging/mirror/pub/rocky/8.4-RC2 # Compose dir example: /mnt/repos-staging/mirror/pub/rocky/8.4-RC2
# Revision must always start with a major number # Revision must always start with a major number
REVISION=8.4 REVISION=8.4
MAJOR="${REVISION:0:1}" #MAJOR="${REVISION:0:1}"
# comment or blank if needed # comment or blank if needed
APPEND_TO_DIR="-RC2" APPEND_TO_DIR="-RC2"
COMPOSE_DIR="/mnt/repos-staging/mirror/pub/rocky/${REVISION}${APPEND_TO_DIR}" COMPOSE_DIR="/mnt/repos-staging/mirror/pub/rocky/${REVISION}${APPEND_TO_DIR}"
@ -136,7 +136,7 @@ for x in "${ARCHES[@]}"; do
cat <<EOF | /usr/bin/python3 cat <<EOF | /usr/bin/python3
from configparser import ConfigParser from configparser import ConfigParser
config = ConfigParser() config = ConfigParser()
config.read('${COMPOSE_DIR}/BaseOS/${x}/os/.treeinfo') config.read('${TREEINFO_VAR}')
config.set('tree', 'variants', 'BaseOS,AppStream') config.set('tree', 'variants', 'BaseOS,AppStream')
config.add_section('variants-AppStream') config.add_section('variants-AppStream')
config.set('variants-AppStream', 'id', 'AppStream') config.set('variants-AppStream', 'id', 'AppStream')
@ -145,7 +145,7 @@ config.set('variants-AppStream', 'type', 'variant')
config.set('variants-AppStream', 'uid', 'AppStream') config.set('variants-AppStream', 'uid', 'AppStream')
config.set('variants-AppStream', 'packages', '../../../AppStream/${x}/os/Packages') config.set('variants-AppStream', 'packages', '../../../AppStream/${x}/os/Packages')
config.set('variants-AppStream', 'repository', '../../../AppStream/${x}/os/') config.set('variants-AppStream', 'repository', '../../../AppStream/${x}/os/')
with open('${COMPOSE_DIR}/BaseOS/${x}/os/.treeinfo', 'w') as configfile: with open('${TREEINFO_VAR}', 'w') as configfile:
config.write(configfile) config.write(configfile)
EOF EOF
else else