Skip to content

Commit

Permalink
utils/upload_kalkun_deps_to_ppa.sh: fix determination of vendor
Browse files Browse the repository at this point in the history
  • Loading branch information
tenzap committed Jul 22, 2024
1 parent f8e2961 commit 43047ce
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions utils/upload_kalkun_deps_to_ppa.sh
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,15 @@ for suite in "${distribs[@]}"; do
echo
set -x

if ubuntu-distro-info --series "$suite" > /dev/null; then
vendor=ubuntu
elif debian-distro-info --series "$suite" > /dev/null; then
vendor=debian
else
echo "could not find vendor for $suite"
exit 1
fi

# If there exists a branch for this suite in the repo, switch to it
if git rev-parse --quiet --verify "origin/$vendor/$suite" > /dev/null; then
git checkout -f "origin/$vendor/$suite"
Expand Down

0 comments on commit 43047ce

Please sign in to comment.