ilot/forgejo-aneksajo: change version scheme to match upstream #70
2 changed files with 7 additions and 4 deletions
|
@ -15,9 +15,12 @@ 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/-*}
|
||||||
|
|
||||||
|
# special case for forgejo-aneksajo:
|
||||||
|
upstream_version=${upstream_version/-git-annex/_git}
|
||||||
|
|
||||||
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
|
||||||
|
|
|
@ -4,9 +4,9 @@
|
||||||
# Contributor: Patrycja Rosa <alpine@ptrcnull.me>
|
# Contributor: Patrycja Rosa <alpine@ptrcnull.me>
|
||||||
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
|
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
|
||||||
pkgname=forgejo-aneksajo
|
pkgname=forgejo-aneksajo
|
||||||
pkgver=8.0.3
|
pkgver=8.0.3_git1
|
||||||
_gittag=v$pkgver-git-annex1
|
_gittag=v${pkgver/_git/-git-annex}
|
||||||
pkgrel=1
|
pkgrel=2
|
||||||
pkgdesc="Self-hosted Git service written in Go with git-annex support"
|
pkgdesc="Self-hosted Git service written in Go with git-annex support"
|
||||||
url="https://forgejo.org"
|
url="https://forgejo.org"
|
||||||
# riscv64: builds fail https://codeberg.org/forgejo/forgejo/issues/3025
|
# riscv64: builds fail https://codeberg.org/forgejo/forgejo/issues/3025
|
||||||
|
|
Loading…
Add table
Reference in a new issue