aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArthur Zamarin <arthurzam@gentoo.org>2024-05-03 14:05:58 +0300
committerArthur Zamarin <arthurzam@gentoo.org>2024-05-03 14:05:58 +0300
commite2312e3f58fac4453ac6ff786ab69a7a30734d00 (patch)
tree8ca625852c7c1d45f02c5ef774f9ab634507ec04
parentIntegrate with release-monitoring (diff)
downloadsoko-e2312e3f58fac4453ac6ff786ab69a7a30734d00.tar.gz
soko-e2312e3f58fac4453ac6ff786ab69a7a30734d00.tar.bz2
soko-e2312e3f58fac4453ac6ff786ab69a7a30734d00.zip
anitya: add ignore for perl packages
We have a special versioning scheme for perl, so until implemented, just ignore them from anitya. https://wiki.gentoo.org/wiki/Project:Perl/Version-Scheme Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
-rw-r--r--pkg/portage/anitya/anitya.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/pkg/portage/anitya/anitya.go b/pkg/portage/anitya/anitya.go
index 25f91cd..6916f67 100644
--- a/pkg/portage/anitya/anitya.go
+++ b/pkg/portage/anitya/anitya.go
@@ -57,6 +57,12 @@ func UpdateAnitya() {
nextPackage:
for _, p := range packages {
+ if p.Category == "dev-perl" || p.Category == "perl-core" {
+ // Skip dev-perl packages, since they have a special versioning scheme in Gentoo
+ // and Anitya does not know about it
+ // https://wiki.gentoo.org/wiki/Project:Perl/Version-Scheme
+ continue
+ }
anitya := anityaPackages[packagesMap[p.Atom]]
p.AnityaInfo = &models.AnityaInfo{
Project: anitya.Project,