forgejo: add special case for dotnet9-sdk

This commit is contained in:
Antoine Martin 2024-12-13 10:26:58 -05:00
parent 88d9198fee
commit a053fd35f3
Signed by: forge
GPG key ID: D62A472A4AA7D541

View file

@ -22,10 +22,11 @@ for pkg in $owned_by_you; do
downstream_version=$(sed -n "/^P:$pkg$/,/^$/p" APKINDEX | awk -F ':' '{if($1=="V"){print $2}}' | sort -V | tail -n 1) downstream_version=$(sed -n "/^P:$pkg$/,/^$/p" APKINDEX | awk -F ':' '{if($1=="V"){print $2}}' | sort -V | tail -n 1)
downstream_version=${downstream_version/-*} downstream_version=${downstream_version/-*}
# special case for freetube # special cases
if [ "$pkg" = "freetube" ]; then case $pkg in
upstream_version=$(curl --fail -X GET -sS -H 'Content-Type: application/json' "https://release-monitoring.org/api/v2/packages/?name=$pkg&distribution=Alpine" | jq -r '.items.[].version' | sed "s|-beta||") freetube) upstream_version=$(curl --fail -X GET -sS -H 'Content-Type: application/json' "https://release-monitoring.org/api/v2/packages/?name=$pkg&distribution=Alpine" | jq -r '.items.[].version' | sed "s|-beta||");;
fi dotnet9-sdk) upstream_version=${upstream_version/-*};;
esac
if [ -z "$upstream_version" ]; then if [ -z "$upstream_version" ]; then
echo "$pkg not in anitya" echo "$pkg not in anitya"