to the \fBworld\fR file at the end, so that they are considered for
later updating.
.TP
+.BR "\-\-avoid\-update "
+Tries to prevent package updates. This may not always be
+possible 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.
+.TP
.BR "\-\-clean " (\fB\-c\fR)
Cleans up the system by examining the installed packages and removing older
packages. This is accomplished by looking at each installed package and separating
USE flags may be toggled by your profile as well as your USE and package.use
settings.
+
+\fB\-\-avoid\-update\fR may prevent updates of installed packages without
+use flag changes. Note that \fB\-\-avoid-\update\fR may lead to slot conflicts.
.TP
.BR "\-\-noconfmem"
Causes portage to disregard merge records indicating that a config file
break
if len(matched_packages) > 1:
+ if "--avoid-update" in self.myopts:
+ for pkg in matched_packages:
+ if pkg.installed:
+ return pkg, existing_node
+
bestmatch = portage.best(
[pkg.cpv for pkg in matched_packages])
matched_packages = [pkg for pkg in matched_packages \
print " to the prompt, so an accidental press of the \"Enter\" key at any"
print " time prior to the prompt will be interpreted as a choice!"
print
+ print " "+green("--avoid-update")
+ desc = "Tries to prevent package updates. This may not always be" + \
+ " possible 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."
+ for line in wrap(desc, desc_width):
+ print desc_indent + line
+ print
print " "+green("--buildpkg")+" ("+green("-b")+" short option)"
desc = "Tells emerge to build binary packages for all ebuilds processed in" + \
" addition to actually merging the packages. Useful for maintainers" + \
"--searchdesc", "--selective",
"--skipfirst",
"--tree",
+"--avoid-update",
"--update",
"--usepkg", "--usepkgonly",
"--verbose",
noiselevel=-1)
return 1
+ if "--avoid-update" in myopts and "--update" in myopts:
+ writemsg("!!! conflicting options given: " + \
+ "--update and --avoid-update\n", noiselevel=-1)
+ return 1
+
if settings.get("PORTAGE_DEBUG", "") == "1":
spinner.update = spinner.update_quiet
portage.debug=1