forgejo: chose highest version when dealing with multiple downstream_versions
This commit is contained in:
parent
257e019992
commit
b345573aa1
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
|
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')
|
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/-*}
|
downstream_version=${downstream_version/-*}
|
||||||
|
|
||||||
if [ -z "$upstream_version" ]; then
|
if [ -z "$upstream_version" ]; then
|
||||||
|
|
Loading…
Reference in a new issue