I'm using a mix of stable, unstable, masked and, of course, unmasked packages. This results in not being able to construct a emerge statement giving me only those packages who has been installed and a more recent version is available. I have to check the output of emerge -up world by hand to select the right packages. The recent addition of the actual installed version helps a lot in this (thanks for that). I suggest adding a new option (--onlynewer) that forces emerge to skip older versions. Maybe it would even be better to change --update to do the same thing. The text of the manual suggests this behaviour of --update.
Created attachment 6806 [details] vote for this or similar option
Created attachment 7430 [details, diff] emerge.diff This patch adds a '--nodowngrade' or '-g' option to emerge. geep root # emerge -up world These are the packages that I would merge, in order: Calculating world dependencies ...done! [ebuild UD] app-text/xpdf-2.01 [2.01-r1] [ebuild U ] net-www/links-2.1_pre6 [2.1_pre3] geep root # emerge -up --nodowngrade world These are the packages that I would merge, in order: Calculating world dependencies ...done! [ebuild U ] net-www/links-2.1_pre6 [2.1_pre3]
patch works great here, comes in very handy :)
I'd prefer the parameter was called 'maintain' with a short switch of -m if this was to be done.
Cool, that was what i was looking for, but how do I add the patch?
what about updates to SLOTed packages ?
Upgrades to SLOTed packages are not disabled by this flag, although they still appear as 'D'.
This patch is great, just what I've been looking for! I think this needs to be in the official version.
Created attachment 8550 [details, diff] emerge-2.0.47-r2.diff Here's an updated copy of the diff for portage 2.0.47-r2
Created attachment 8551 [details, diff] emerge-2.0.47-r2.diff Here's an updated copy of the diff for portage 2.0.47-r2
*** Bug 16819 has been marked as a duplicate of this bug. ***
-U/--upgradeonly
does a make.conf option for that exist ? (i.e. to make it never downgrade)