From: Matthias Kruk Date: Wed, 1 Dec 2021 09:35:20 +0000 (+0900) Subject: distbot: Don't attempt to publish non-deb files X-Git-Url: https://git.corax.cc/?a=commitdiff_plain;h=ea9c40bf934ff8805ce7136c49dc93c39901d049;p=foundry 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. --- 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")