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

Bug 212460

Summary: app-portage/eix - availableversionsshort format not recognized correctly
Product: Portage Development Reporter: Torsten Schmits <tek666>
Component: ToolsAssignee: Stefan Schweizer (RETIRED) <genstef>
Status: RESOLVED INVALID    
Severity: trivial CC: ekz999, martin
Priority: High    
Version: 2.0   
Hardware: All   
OS: All   
Whiteboard:
Package list:
Runtime testing required: ---

Description Torsten Schmits 2008-03-06 03:14:50 UTC
Seems that availableversionsshort just gives the same as availableversions. Also, COLON_SLOTS has no effect on it.

% COLON_SLOTS=true eix --format '<availableversions>' -e kopete

        (3.5)   ~3.5.6-r2 3.5.8 ~3.5.9
        (kde-4) [M]~4.0.1
        {+addbookmarks +alias ...}
% COLON_SLOTS=true eix --format '<availableversionsshort>' -e kopete

        (3.5)   ~3.5.6-r2 3.5.8 ~3.5.9
        (kde-4) [M]~4.0.1
        {+addbookmarks +alias ...}

the latter should be more like:
~3.5.6-r2:3.5 3.5.8:3.5 ~3.5.9:3.5
[M]~4.0.1:kde-4

as in:
% COLON_SLOTS=true eix --format '<installedversionsshort>' -e kopete
3.5.8:3.5 4.0.1:kde-4


Reproducible: Always

Steps to Reproduce:
1. run eix
2. ???
3. bug
Comment 1 Martin Väth 2008-03-06 12:34:52 UTC
(In reply to comment #0)
> the latter should be more like:
> ~3.5.6-r2:3.5 3.5.8:3.5 ~3.5.9:3.5

What you mean here is *not* the purpose of availableversionsshort;
the purpose of availableversionsshort is just to set PRINT_SLOTS=false
temporarily, i.e. to omit the slot names in the printing of the individual
version numbers (which are not printed anyway if STYLE_VERSION_SORTED=false).
The setting which you want is 
  STYLE_VERSION_SORTED=true
Then you get the above with availableversionslong, and with availableversionsshort you get
  ~3.5.6-r2 3.5.8 ~3.5.9
(i.e. without slot names).

There is currently no way to set STYLE_VERSION_SORTED temporarily from
within the formatstring. Unless there is a particular reason to do this, I
also do not intend to add even more features to the formatstring - it is too
complex already anyway...
Comment 2 Torsten Schmits 2008-03-06 13:11:13 UTC
(In reply to comment #1)
>   STYLE_VERSION_SORTED=true
> Then you get the above with availableversionslong

ok, with PRINT_IUSE=false, this is what I expected from availableversionsshort, thanks.