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.
return 1
fi
+ if [[ "$branch" == "unstable" ]]; then
+ codename="unstable"
+ fi
+
readarray -t artifacts < <(foundry_context_get_files "$context" "signed")
for artifact in "${artifacts[@]}"; do