Summary: | app-portage/gentoolkit - eshowkw should sort SLOTs | ||
---|---|---|---|
Product: | Portage Development | Reporter: | Jeroen Roovers (RETIRED) <jer> |
Component: | Tools | Assignee: | Portage Tools Team <tools-portage> |
Status: | RESOLVED FIXED | ||
Severity: | minor | ||
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 346443 |
Description
Jeroen Roovers (RETIRED)
![]() That output is sorted. It is just not numerically sorted, but normal alphabetically sorted. In order to sort it numerically it means breaking apart the sections and padding them to more digits. Then plain sorting the padded slots. ie. 1.1 ==> 001.001, 1.10 ==> 001.010, 1.1.2 ==> 001.001.002 Actually, this looks like a bug in the code. The function doing the sorting was sorting the list of packages twice. The first time with vercmp from portage and the second time using python's itemgetter function. I deleted the sort with itemgetter and committed the change. This produces the correct output. http://git.overlays.gentoo.org/gitweb/?p=proj/gentoolkit.git;a=commit;h=ba64705ea61bbfe506bee228b56758216ffb987c This was released with gentoolkit-0.3.0.6-r2 |