Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 212460 - app-portage/eix - availableversionsshort format not recognized correctly
Summary: app-portage/eix - availableversionsshort format not recognized correctly
Status: RESOLVED INVALID
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Tools (show other bugs)
Hardware: All All
: High trivial (vote)
Assignee: Stefan Schweizer (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-03-06 03:14 UTC by Torsten Schmits
Modified: 2008-03-06 13:11 UTC (History)
2 users (show)

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


Attachments

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