From 6cbd9c08dbfbd00d76c322d58f1f6293bc424337 Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Tue, 29 Oct 2024 08:32:32 -0400 Subject: [PATCH 1/2] forgejo: add special case for forgejo-aneksajo when checking upstream version --- .forgejo/bin/check_ver.sh | 3 +++ ilot/forgejo-aneksajo/APKBUILD | 6 +++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.forgejo/bin/check_ver.sh b/.forgejo/bin/check_ver.sh index e4b7fd7..5814e6e 100755 --- a/.forgejo/bin/check_ver.sh +++ b/.forgejo/bin/check_ver.sh @@ -18,6 +18,9 @@ for pkg in $owned_by_you; do downstream_version=$(sed -n "/^P:$pkg$/,/^$/p" APKINDEX | awk -F ':' '{if($1=="V"){print $2}}') downstream_version=${downstream_version/-*} + # special case for forgejo-aneksajo: + upstream_version=${upstream_version/-git-annex/_gitannex} + if [ -z "$upstream_version" ]; then echo "$pkg not in anitya" echo "$pkg" >> not_in_anitya diff --git a/ilot/forgejo-aneksajo/APKBUILD b/ilot/forgejo-aneksajo/APKBUILD index efca056..f9852ca 100644 --- a/ilot/forgejo-aneksajo/APKBUILD +++ b/ilot/forgejo-aneksajo/APKBUILD @@ -4,9 +4,9 @@ # Contributor: Patrycja Rosa # Maintainer: Antoine Martin (ayakael) pkgname=forgejo-aneksajo -pkgver=8.0.3 -_gittag=v$pkgver-git-annex1 -pkgrel=1 +pkgver=8.0.3_gitannex1 +_gittag=v8.0.3-git-annex-1 +pkgrel=2 pkgdesc="Self-hosted Git service written in Go with git-annex support" url="https://forgejo.org" # riscv64: builds fail https://codeberg.org/forgejo/forgejo/issues/3025 From 0e78808022d513cb12cbce274a5a0246655e1438 Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Tue, 29 Oct 2024 08:33:36 -0400 Subject: [PATCH 2/2] ilot/forgejo-aneksajo: change version scheme --- ilot/forgejo-aneksajo/APKBUILD | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ilot/forgejo-aneksajo/APKBUILD b/ilot/forgejo-aneksajo/APKBUILD index f9852ca..a86131f 100644 --- a/ilot/forgejo-aneksajo/APKBUILD +++ b/ilot/forgejo-aneksajo/APKBUILD @@ -5,7 +5,7 @@ # Maintainer: Antoine Martin (ayakael) pkgname=forgejo-aneksajo pkgver=8.0.3_gitannex1 -_gittag=v8.0.3-git-annex-1 +_gittag=v8.0.3-git-annex1 pkgrel=2 pkgdesc="Self-hosted Git service written in Go with git-annex support" url="https://forgejo.org"