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

Bug 674120

Summary: app-portage/pfl: e-file should sort version strings
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Daniel Pielmeier <billie>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Sort version in output

Description Toralf Förster gentoo-dev 2018-12-30 19:12:21 UTC
t44 ~ #  e-file /usr/sbin/lspci
[I] sys-apps/pciutils
        Available Versions:     3.5.4 3.5.1 3.6.2 3.6.1 3.6.0 3.5.3 3.3.1 3.1.7 3.2.0 3.3.0-r2 3.5.5 3.5.6 3.5.2 3.4.1
Comment 1 Daniel Pielmeier gentoo-dev 2019-06-23 09:24:23 UTC
Thanks for the report!

I have a fix ready, however my awk knowledge is limited. Basically the versions are sorted using sort -V as an external command which seems to work well.

I will attach the proposed changes. Maybe somebody has a better idea.
Comment 2 Daniel Pielmeier gentoo-dev 2019-06-23 09:24:46 UTC
Created attachment 580550 [details, diff]
Sort version in output
Comment 3 Daniel Pielmeier gentoo-dev 2019-07-06 09:42:00 UTC
Fixed in Git with pfl-3.0.1.