Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 893922

Summary: soko: The ShowOutdated packages box does not consistently show the 'latest' version as outdated.
Product: Websites Reporter: Matt Jolly <kangie>
Component: PackagesAssignee: Gentoo Packages Website <gpackages>
Status: RESOLVED DUPLICATE    
Severity: normal CC: kuraga333
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: https://web.archive.org/web/20230211055306/https://packages.gentoo.org/packages/app-misc/elasticsearch
Whiteboard:
Package list:
Runtime testing required: ---

Description Matt Jolly gentoo-dev 2023-02-11 06:06:27 UTC
When all versions of a package are outdated (e.g. https://web.archive.org/web/20230211055306/https://packages.gentoo.org/packages/app-misc/elasticsearch ), an older outdated package is displayed in the "Please consider updating" box, rather than the "newest" outdated version.

I suspect that whatever fills in `(index .Package.Outdated 0).GentooVersion` doesn't account for there being multiple updated versions properly.

https://github.com/gentoo/soko/blob/master/web/templates/packages/components/overview.tmpl#L16

Reproducible: Always

Steps to Reproduce:
1. Find package where there all versions are outdated
2. View package in Soko
Actual Results:  
Note that package version indicated is not the "Please consider updating" box

Expected Results:  
Package Version shown should be the latest.
Comment 1 Arthur Zamarin archtester Gentoo Infrastructure gentoo-dev Security 2023-04-05 18:41:14 UTC

*** This bug has been marked as a duplicate of bug 893402 ***