]> git.corax.cc Git - foundry/commitdiff
distbot: Add unstable package builds to unstable codename
authorMatthias Kruk <m@m10k.eu>
Fri, 14 Jan 2022 12:38:36 +0000 (21:38 +0900)
committerMatthias Kruk <m@m10k.eu>
Fri, 14 Jan 2022 12:38:36 +0000 (21:38 +0900)
Distbot places all packages in a repository under the same codename,
regardless of the branch they were built from. However, unstable
packages should not be mixed with stable packages.

This commit modifies distbot so that it places packages built from
unstable branches under the unstable codename in a repository.

distbot.sh

index 1e733f721c75b19fdef80adc4578bec33025e530..dc288985f1df94e76fded1eaa64a1d72018ec609 100755 (executable)
@@ -166,6 +166,10 @@ process_sign_message() {
                return 1
        fi
 
+       if [[ "$branch" == "unstable" ]]; then
+               codename="unstable"
+       fi
+
        readarray -t artifacts < <(foundry_context_get_files "$context" "signed")
 
        for artifact in "${artifacts[@]}"; do