missing logic

This commit is contained in:
nazunalika 2021-07-05 03:43:58 -07:00
parent eefb69361b
commit 44a1cd08b9
Signed by untrusted user who does not match committer: label
GPG Key ID: 6735C0E1BD65D048

View File

@ -104,9 +104,15 @@ for x in "${ARCHES[@]}"; do
for y in "${MODS[@]}"; do
echo "Modules: ${y} ${x}"
cp "/mnt/compose/8_metadata/${x}/${y}-modules.yaml" /tmp/modules.yaml
modifyrepo --mdtype=modules /tmp/modules.yaml \
"${COMPOSE_DIR}/${y}/${x}/os/repodata" \
--compress --compress-type=gz
test -d "${COMPOSE_DIR}/${y}/${x}/os"
ret_val=$?
if [ "$ret_val" -eq 0 ]; then
modifyrepo --mdtype=modules /tmp/modules.yaml \
"${COMPOSE_DIR}/${y}/${x}/os/repodata" \
--compress --compress-type=gz
else
echo "${COMPOSE_DIR}/${y}/${x}/os does not exist"
fi
rm /tmp/modules.yaml
sleep 1