From ea9c40bf934ff8805ce7136c49dc93c39901d049 Mon Sep 17 00:00:00 2001 From: Matthias Kruk Date: Wed, 1 Dec 2021 18:35:20 +0900 Subject: [PATCH] distbot: Don't attempt to publish non-deb files When publishing files, distbot attempts to publish all files from a context, including non-deb files such as logs. This commit modifies distbot so that it attempts to publish only debian packages. --- distbot.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/distbot.sh b/distbot.sh index ff54c79..1e733f7 100755 --- a/distbot.sh +++ b/distbot.sh @@ -166,12 +166,19 @@ process_sign_message() { return 1 fi - readarray -t artifacts < <(foundry_context_get_files "$context") + readarray -t artifacts < <(foundry_context_get_files "$context" "signed") for artifact in "${artifacts[@]}"; do local artifact_name + local extension artifact_name="${artifact##*/}" + extension="${artifact_name##*.}" + + if [[ "$extension" != "deb" ]]; then + log_debug "Skipping non-deb artifact $artifact_name" + continue + fi if process_new_package "$context" "$artifact" "$repo" "$codename"; then distributed+=("$artifact_name") -- 2.47.3