Skip to content

Commit 1331ad7

Browse files
committed
fix deletion packages bug
1 parent 90406ec commit 1331ad7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/publish-rpm-packages.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ done
5454

5555
# Download existing repository metadata if it exists
5656
printf "\n>>> Downloading existing repository metadata \n"
57-
aws s3 sync s3://${RPM_BUCKET_NAME}/${RPM_REPO_PATH}/ rpm-repo/ --endpoint-url "${AWS_ENDPOINT_URL}" --delete || echo "No existing repository found, creating new one"
57+
aws s3 sync s3://${RPM_BUCKET_NAME}/${RPM_REPO_PATH}/ rpm-repo/ --endpoint-url "${AWS_ENDPOINT_URL}" --exclude "*" --include "*/repodata/*" || echo "No existing repository found, creating new one"
5858

5959
# Create repository metadata for each architecture
6060
printf "\n>>> Creating repository metadata \n"
@@ -85,7 +85,7 @@ done
8585

8686
# Upload the updated repository to S3
8787
printf "\n>>> Uploading repository to S3 \n"
88-
aws s3 sync rpm-repo/ s3://${RPM_BUCKET_NAME}/${RPM_REPO_PATH}/ --endpoint-url "${AWS_ENDPOINT_URL}" --delete
88+
aws s3 sync rpm-repo/ s3://${RPM_BUCKET_NAME}/${RPM_REPO_PATH}/ --endpoint-url "${AWS_ENDPOINT_URL}"
8989

9090
# Upload the public key
9191
printf "\n>>> Uploading public key \n"

0 commit comments

Comments
 (0)