forgejo: add special case for freetube
This commit is contained in:
parent
9e7a9c464e
commit
88d9198fee
1 changed files with 5 additions and 0 deletions
|
@ -22,6 +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
|
||||||
|
if [ "$pkg" = "freetube" ]; then
|
||||||
|
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
|
||||||
|
|
||||||
if [ -z "$upstream_version" ]; then
|
if [ -z "$upstream_version" ]; then
|
||||||
echo "$pkg not in anitya"
|
echo "$pkg not in anitya"
|
||||||
echo "$pkg" >> not_in_anitya
|
echo "$pkg" >> not_in_anitya
|
||||||
|
|
Loading…
Reference in a new issue