fix createrepo

This commit is contained in:
Louis Abel 2023-11-16 15:21:56 -07:00
parent f583ef5834
commit 8c2122decc
Signed by untrusted user: label
GPG key ID: B37E62D143879B36

View file

@ -28,7 +28,7 @@ if [ "$RLVER" -eq "9" ]; then
for repo in "${MODS[@]}"; do
for arch in "${ARCHES[@]}"; do
mkdir -p "${TARGET}/${repo}/${arch}/os/repodata"
cp "${REV}/${repo}/${arch}/os/repodata/*MODULES.yaml.gz" "/tmp/${repo}-${arch}-${DATE}.modules.yaml.gz"
cp "${PRODUCTION_ROOT}/${CATEGORY_STUB}/${REV}/${repo}/${arch}/os/repodata/*MODULES.yaml.gz" "/tmp/${repo}-${arch}-${DATE}.modules.yaml.gz"
pushd /tmp || exit 1
gunzip "/tmp/${repo}-${arch}-${DATE}.modules.yaml.gz"
popd || exit 1
@ -38,7 +38,7 @@ if [ "$RLVER" -eq "9" ]; then
# groups
for repo in "${MODS_REPOS[@]}"; do
for arch in "${ARCHES[@]}"; do
createrepo_comps "${TARGET}/${repo}/${arch}/os" "${REV}" "${REV}/${repo}/${arch}/os/repodata/*GROUPS.xml"
createrepo_comps "${TARGET}/${repo}/${arch}/os" "${REV}" "${PRODUCTION_ROOT}/${CATEGORY_STUB}/${REV}/${repo}/${arch}/os/repodata/*GROUPS.xml"
done
done
# no groups