Skip to content

Commit 276bacd

Browse files
committed
fix duplicating metadata
1 parent 17c0d1b commit 276bacd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

scripts/publish-rpm-packages.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,8 @@ done
8787

8888
# Upload the updated repository to S3
8989
printf "\n>>> Uploading repository to S3 \n"
90+
# Remove old metadata files first to avoid duplicates
91+
aws s3 rm s3://${RPM_BUCKET_NAME}/${RPM_REPO_PATH}/ --recursive --exclude "*" --include "*/repodata/*" --endpoint-url "${AWS_ENDPOINT_URL}" || echo "No old metadata to remove"
9092
aws s3 sync rpm-repo/ s3://${RPM_BUCKET_NAME}/${RPM_REPO_PATH}/ --endpoint-url "${AWS_ENDPOINT_URL}"
9193

9294
# Upload the public key

0 commit comments

Comments
 (0)