diff options
author | Arthur Zamarin <arthurzam@gentoo.org> | 2024-05-07 21:02:07 +0300 |
---|---|---|
committer | Arthur Zamarin <arthurzam@gentoo.org> | 2024-05-07 21:02:07 +0300 |
commit | 9286585d074b252c40810844a987b6b46763a25b (patch) | |
tree | 837fdf0fb380354c693c3aa1c729fa76064cf563 /pkg | |
parent | updater/mask: don't panic upon malformed files (diff) | |
download | soko-9286585d074b252c40810844a987b6b46763a25b.tar.gz soko-9286585d074b252c40810844a987b6b46763a25b.tar.bz2 soko-9286585d074b252c40810844a987b6b46763a25b.zip |
anitya: handle better packages without stable versions
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
Diffstat (limited to 'pkg')
-rw-r--r-- | pkg/portage/anitya/anitya.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pkg/portage/anitya/anitya.go b/pkg/portage/anitya/anitya.go index 6916f67..9a73aae 100644 --- a/pkg/portage/anitya/anitya.go +++ b/pkg/portage/anitya/anitya.go @@ -72,6 +72,10 @@ nextPackage: } latest := models.Version{Version: anitya.LatestVersion()} + if latest.Version == "" { + continue + } + currentLatest := p.Versions[0] for _, v := range p.Versions { if slices.Contains(v.Properties, "live") { |