Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 142469 - request to ehance app-portage/eix -D feature (and --pipe feature)
Summary: request to ehance app-portage/eix -D feature (and --pipe feature)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Lowest enhancement
Assignee: Stefan Schweizer (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-01 14:44 UTC by Vlastimil Babka (Caster) (RETIRED)
Modified: 2006-08-06 04:14 UTC (History)
1 user (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 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2006-08-01 14:44:32 UTC
eix -D is great, however it would be nice to have also option/eixrc flag to list duplicate packages among several overlays(+portage tree), even if they don't collide on the same versions, just the packages. The most flexible way would prolly be to add eixrc variable named like DUPLICATE_IF with these possible values:
versions_all (exact version match for portage/overlays, current behaviour, would become default)
versions_overlays (exact version match only among overlays)
packages_all (same package in portage / overlays)
packages_overlays (same package only among overlays)

thanks in advance if you consider that worth to do
Comment 1 Martin Väth 2006-08-02 07:50:35 UTC
For such 2x2 cases, two Boolean variables might be more natural.
But actually, I think the versions/packages choice should be easier to change at runtime, i.e. through a different test option. The other - presumably more constant - choice might be controlled by variables (two different Boolean variables to allow independent defaults for the two cases).

The corresponding change is now in the new svn trunk and will probably go into eix-0.6.1. Test it, and let me know what you think (or whether you found other bugs in the trunk).
Comment 2 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2006-08-02 08:58:31 UTC
Thanks, it seems to work fine here, have no other problems with trunk (except bug 142503). I also agree on how you implemented it.

Just found this wording weird in man eix for -d:
"Only match duplicated packages with duplicated packages" 
Should be something like "Only match duplicated packages"
The man also doesn't make clear what is the default (true/false) but that seems to be problem of other true/false options as well.

Something less related, I tried the --pipe option. Not really sure what it's good for (with genlop it's pretty obvious :), but it would be much more useful if it could mark also the version that's going to be installed in the version list and/or add some "Will install: %version" line below the "Installed: %version" line.
Comment 3 Martin Väth 2006-08-02 12:27:16 UTC
Thanks for the testing. The manpage is corrected now.

> The man also doesn't make clear what is the default (true/false) but that
> seems to be problem of other true/false options as well.

Actually this is the case with *all* variables in the manpage, and probably it is better to not document the defaults, since people should not rely that they do not change. The --dump option can be used to display the defaults.

> I tried the --pipe option. Not really sure what it's good for

To be honest, I also don't know, but I found it in the TODO-file when I took the maintainership, so some people want it, and I decided to implement it.
Actually, this option can parse more than only the emerge -pv output; this is documented now in the manpage.

> It would be much more useful if it could mark also the version that's going
> to be installed

This is not easy to implement, because the packages data cannot be available during input parsing. Of course, one could store this for later... however, I am not sure whether this is worth all the trouble: As you said, this option is probably only good for nothing.
Comment 4 Martin Väth 2006-08-03 16:46:12 UTC
> but it would be much more useful if it could mark also the version

I changed my mind. This is now implemented.
Comment 5 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2006-08-03 23:11:31 UTC
Seems to work, thanks.
Comment 6 Stefan Schweizer (RETIRED) gentoo-dev 2006-08-06 04:14:46 UTC
we believe this is fixed with 0.6.2

thanks or reporting!