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

Bug 12069

Summary: Extra option to skip downgrades
Product: Portage Development Reporter: faz <faz>
Component: CoreAssignee: Nicholas Jones (RETIRED) <carpaski>
Status: RESOLVED FIXED    
Severity: normal CC: h3y, hannes, jhhudso, jrray, mholzer, moixa, slyzer, whale
Priority: High    
Version: 2.0   
Hardware: All   
OS: All   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on: 9379    
Bug Blocks:    
Attachments: vote for this or similar option
emerge.diff
emerge-2.0.47-r2.diff
emerge-2.0.47-r2.diff

Description faz 2002-12-13 01:36:35 UTC
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.
Comment 1 kde123 2002-12-28 09:11:25 UTC
Created attachment 6806 [details]
vote for this or similar option
Comment 2 J Robert Ray 2003-01-19 02:02:40 UTC
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]
Comment 3 Olivier Reisch (RETIRED) gentoo-dev 2003-01-20 09:45:30 UTC
patch works great here, comes in very handy :)
Comment 4 Narada Sage 2003-02-01 17:46:35 UTC
I'd prefer the parameter was called 'maintain' with a short switch of -m if this was to be done. 
Comment 5 Fir3fly 2003-02-03 01:53:10 UTC
Cool, that was what i was looking for, but how do I add the patch?
Comment 6 Bartosch Pixa (RETIRED) gentoo-dev 2003-02-03 03:54:06 UTC
what about updates to SLOTed packages ?
Comment 7 J Robert Ray 2003-02-03 04:50:54 UTC
Upgrades to SLOTed packages are not disabled by this flag, although they still appear as 'D'.
Comment 8 Scott Richey 2003-02-03 10:22:55 UTC
This patch is great, just what I've been looking for! I think this needs to be in the official version.
Comment 9 Eric Andresen 2003-02-20 16:47:23 UTC
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
Comment 10 Eric Andresen 2003-02-20 16:47:37 UTC
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
Comment 11 SpanKY gentoo-dev 2003-03-04 09:56:41 UTC
*** Bug 16819 has been marked as a duplicate of this bug. ***
Comment 12 Nicholas Jones (RETIRED) gentoo-dev 2003-03-05 04:17:27 UTC
-U/--upgradeonly
Comment 13 Danny Milosavljevic 2004-04-09 05:08:35 UTC
does a make.conf option for that exist ? (i.e. to make it never downgrade)