From 2869c480e831b84b7a5c165b5985573d97c29bec Mon Sep 17 00:00:00 2001 From: nazunalika Date: Tue, 27 Jul 2021 12:07:38 -0700 Subject: [PATCH] open-size is empty --- sync/prep-staging-8.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/sync/prep-staging-8.sh b/sync/prep-staging-8.sh index 3d8aba4..618f81e 100644 --- a/sync/prep-staging-8.sh +++ b/sync/prep-staging-8.sh @@ -25,6 +25,8 @@ for y in "${ALL_REPOS[@]}"; do "--distro=cpe:/o:rocky:rocky:${REVISION:0:1},Rocky Linux ${REVISION:0:1}" test -f /root/bin/sign-repo.sh && /root/bin/sign-repo.sh \ "${STAGING_ROOT}/${RELEASE_DIR}/${y}/source/tree/repodata/repomd.xml" + sed -i '/<\/open-size>/d' \ + "${STAGING_ROOT}/${RELEASE_DIR}/${y}/source/tree/repodata/repomd.xml" else echo "${STAGING_ROOT}/${RELEASE_DIR}/${y}/source/tree does not exist" fi @@ -45,6 +47,8 @@ for x in "${ARCHES[@]}"; do "--distro=cpe:/o:rocky:rocky:${REVISION:0:1},Rocky Linux ${REVISION:0:1}" test -f /root/bin/sign-repo.sh && /root/bin/sign-repo.sh \ "${STAGING_ROOT}/${RELEASE_DIR}/${y}/${x}/${z}/repodata/repomd.xml" + sed -i '/<\/open-size>/d' \ + "${STAGING_ROOT}/${RELEASE_DIR}/${y}/${x}/${z}/repodata/repomd.xml" else echo "${STAGING_ROOT}/${RELEASE_DIR}/${y}/${x}/${z} does not exist" fi @@ -59,6 +63,8 @@ for x in "${ARCHES[@]}"; do "--distro=cpe:/o:rocky:rocky:${REVISION:0:1},Rocky Linux ${REVISION:0:1}" test -f /root/bin/sign-repo.sh && /root/bin/sign-repo.sh \ "${STAGING_ROOT}/${RELEASE_DIR}/${y}/${x}/debug/tree/repodata/repomd.xml" + sed -i '/<\/open-size>/d' \ + "${STAGING_ROOT}/${RELEASE_DIR}/${y}/${x}/debug/tree/repodata/repomd.xml" else echo "${STAGING_ROOT}/${RELEASE_DIR}/${y}/${x}/debug/tree does not exist" fi @@ -77,6 +83,8 @@ for x in "${ARCHES[@]}"; do --workers=8 --checksum=sha256 test -f /root/bin/sign-repo.sh && /root/bin/sign-repo.sh \ "${STAGING_ROOT}/${RELEASE_DIR}/${y}/${x}/os/repodata/repomd.xml" + sed -i '/<\/open-size>/d' \ + "${STAGING_ROOT}/${RELEASE_DIR}/${y}/${x}/os/repodata/repomd.xml" else echo "${STAGING_ROOT}/${RELEASE_DIR}/${y}/${x}/os does not exist" fi @@ -95,6 +103,8 @@ for x in "${ARCHES[@]}"; do # This might not be necessary, but it does not hurt incase repomd is modified test -f /root/bin/sign-repo.sh && /root/bin/sign-repo.sh \ "${STAGING_ROOT}/${RELEASE_DIR}/${y}/${x}/os/repodata/repomd.xml" + sed -i '/<\/open-size>/d' \ + "${STAGING_ROOT}/${RELEASE_DIR}/${y}/${x}/os/repodata/repomd.xml" else echo "${STAGING_ROOT}/${RELEASE_DIR}/${y}/${x}/os does not exist" fi