forgejo: chose highest version when dealing with multiple downstream_versions
This commit is contained in:
parent
d07957ab63
commit
eb8242c6f0
1 changed files with 1 additions and 1 deletions
|
@ -15,7 +15,7 @@ rm -f out_of_date not_in_anitya
|
|||
|
||||
for pkg in $owned_by_you; do
|
||||
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.[].stable_version')
|
||||
downstream_version=$(sed -n "/^P:$pkg$/,/^$/p" APKINDEX | awk -F ':' '{if($1=="V"){print $2}}')
|
||||
downstream_version=$(sed -n "/^P:$pkg$/,/^$/p" APKINDEX | awk -F ':' '{if($1=="V"){print $2}}' | sort -V | tail -n 1)
|
||||
downstream_version=${downstream_version/-*}
|
||||
|
||||
# special case for forgejo-aneksajo:
|
||||
|
|
Loading…
Add table
Reference in a new issue