Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 275945 - [PATCH] sys-apps/portage - emerge: avoid updates unless --update option is enabled
Summary: [PATCH] sys-apps/portage - emerge: avoid updates unless --update option is en...
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS
: 158358 (view as bug list)
Depends on:
Blocks: 210077 280394 288499
  Show dependency tree
 
Reported: 2009-06-30 12:32 UTC by Sebastian Luther (few)
Modified: 2018-02-05 00:30 UTC (History)
2 users (show)

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


Attachments
emerge: introdue --avoid-update option (portage-emerge-avoid-update-option.patch,3.56 KB, patch)
2009-06-30 12:32 UTC, Sebastian Luther (few)
Details | Diff
emerge: introduce --avoid-update option (portage-emerge-avoid-update-option.patch,3.56 KB, patch)
2009-06-30 14:07 UTC, Sebastian Luther (few)
Details | Diff

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