From 43047ced768e605f98ecc8af8ea4452d83e38179 Mon Sep 17 00:00:00 2001 From: tenzap Date: Mon, 22 Jul 2024 11:47:35 +0200 Subject: [PATCH] utils/upload_kalkun_deps_to_ppa.sh: fix determination of vendor --- utils/upload_kalkun_deps_to_ppa.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/utils/upload_kalkun_deps_to_ppa.sh b/utils/upload_kalkun_deps_to_ppa.sh index 4487be23..b705f3c1 100755 --- a/utils/upload_kalkun_deps_to_ppa.sh +++ b/utils/upload_kalkun_deps_to_ppa.sh @@ -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"