Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 674120 - app-portage/pfl: e-file should sort version strings
Summary: app-portage/pfl: e-file should sort version strings
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Daniel Pielmeier
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-12-30 19:12 UTC by Toralf Förster
Modified: 2019-07-06 09:42 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Sort version in output (pfl-fix-version-sort.diff,551 bytes, patch)
2019-06-23 09:24 UTC, Daniel Pielmeier
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.