Skip to content

Commit af7237c

Browse files
Patrick Stephensedsiper
authored andcommitted
packaging: ensure we sign all
Signed-off-by: Patrick Stephens <[email protected]>
1 parent 461b986 commit af7237c

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

packaging/update-repos.sh

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,12 @@ done
101101

102102
# Ensure we sign the Yum repo meta-data
103103
if [[ "$DISABLE_SIGNING" != "true" ]]; then
104-
# We use this form of find to fail on error
105-
find "$BASE_PATH" -name repomd.xml -exec gpg --detach-sign --batch --armor --yes -u "$GPG_KEY" {} +
104+
# We use this form to fail on error during the find, otherwise -exec will succeed or just do one file with +
105+
while IFS= read -r -d '' REPO_METADATA_FILE
106+
do
107+
echo "Signing $REPO_METADATA_FILE"
108+
gpg --detach-sign --batch --armor --yes -u "$GPG_KEY" "$REPO_METADATA_FILE"
109+
done < <(find "$BASE_PATH" -name repomd.xml -print0)
110+
# Debug ouput for checking
111+
find "$BASE_PATH" -name "repomd.xml*" -exec ls -l {} \;
106112
fi

0 commit comments

Comments
 (0)