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

Bug 275945

Summary: [PATCH] sys-apps/portage - emerge: avoid updates unless --update option is enabled
Product: Portage Development Reporter: Sebastian Luther (few) <SebastianLuther>
Component: CoreAssignee: Portage team <dev-portage>
Status: RESOLVED FIXED    
Severity: normal CC: betelgeuse, gentoo-bugs
Priority: High Keywords: InVCS
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=525052
https://bugs.gentoo.org/show_bug.cgi?id=559354
https://bugs.gentoo.org/show_bug.cgi?id=646466
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 210077, 280394, 288499    
Attachments: emerge: introdue --avoid-update option
emerge: introduce --avoid-update option

Description Sebastian Luther (few) 2009-06-30 12:32:11 UTC
--avoid-update
              Tries  to prevent package updates. This may not always be possiā€
              ble since new packages or  new  dependencies  due  to  use  flag
              changes  may  require  a  newer version of an installed package.
              Furthermore this option may lead  to  slot  conflicts  (Multiple
              package  instances within a single package slot have been pulled
              into the dependency graph). It  is  not  possible  to  use  this
              option in such a case.
Comment 1 Sebastian Luther (few) 2009-06-30 12:32:52 UTC
Created attachment 196152 [details, diff]
emerge: introdue --avoid-update option
Comment 2 Allen Brooker (AllenJB) 2009-06-30 12:44:20 UTC
Would it not be better (and more intuitive) to only consider newer versions of packages if --update is specified?

Also, the patch appears to add --avoid-packages to the man page, but this option isn't included anywhere else in the patch.
Comment 3 Sebastian Luther (few) 2009-06-30 12:56:45 UTC
(In reply to comment #2)
> Would it not be better (and more intuitive) to only consider newer versions of
> packages if --update is specified?

Like the man page entry says, it may lead to slot conflicts and without bug 1343 solved, this is not going to change.

> Also, the patch appears to add --avoid-packages to the man page, but this
> option isn't included anywhere else in the patch.

Have a look at the attached file.
Comment 4 Sebastian Luther (few) 2009-06-30 13:57:26 UTC
Everyone interested in this should have a look at bug 275898.
Comment 5 Sebastian Luther (few) 2009-06-30 14:07:02 UTC
Created attachment 196158 [details, diff]
emerge: introduce --avoid-update option

Corrected --avoid-package -> --avoid-update in the man page, thanks to AllenJB.
Comment 6 Zac Medico gentoo-dev 2009-06-30 21:34:11 UTC
Thanks, this is in svn r13745.
Comment 7 Zac Medico gentoo-dev 2009-07-04 06:13:52 UTC
(In reply to comment #2)
> Would it not be better (and more intuitive) to only consider newer versions of
> packages if --update is specified?

Good idea, that's how it is now in svn r13772.
Comment 8 Zac Medico gentoo-dev 2009-08-03 23:11:04 UTC
This is fixed in 2.2_rc34.
Comment 9 Zac Medico gentoo-dev 2009-10-10 23:52:13 UTC
*** Bug 158358 has been marked as a duplicate of this bug. ***
Comment 10 Zac Medico gentoo-dev 2009-10-11 00:50:41 UTC
This is fixed in 2.1.7.