been installed. Without this option, any packages, ebuilds, or deps
you specify on the command\-line \fBwill\fR cause Portage to remerge
the package, even if it is already installed. Note that Portage will
-not remerge dependencies by default. Also note that this option takes
-precedence over options such as \fB\-\-newuse\fR, preventing a package
-from being reinstalled even though the corresponding USE flag settings
-may have changed.
+not remerge dependencies by default.
.TP
.BR "\-\-nospinner"
Disables the spinner for the session. The spinner is active when the
\fB\-\-oneshot\fR behavior default.
.TP
.BR "\-\-selective [ y | n ]"
-This is similar to the \fB\-\-noreplace\fR option, except that it
-does not take precedence over options such as \fB\-\-newuse\fR.
+This is identical to the \fB\-\-noreplace\fR option.
Some options, such as \fB\-\-update\fR, imply \fB\-\-selective\fR.
Use \fB\-\-selective=n\fR if you want to forcefully disable
\fB\-\-selective\fR, regardless of options like \fB\-\-update\fR.
debug = "--debug" in myopts
verbose = "--verbose" in myopts
quiet = "--quiet" in myopts
+ myparams = create_depgraph_params(myopts, myaction)
+
if pretend or fetchonly:
# make the mtimedb readonly
mtimedb.filename = None
favorites = mtimedb["resume"].get("favorites")
if not isinstance(favorites, list):
favorites = []
- myparams = create_depgraph_params(myopts, myaction)
resume_data = mtimedb["resume"]
mergelist = resume_data["mergelist"]
print(darkgreen("emerge: It seems we have nothing to resume..."))
return os.EX_OK
- myparams = create_depgraph_params(myopts, myaction)
try:
success, mydepgraph, favorites = backtrack_depgraph(
settings, trees, myopts, myparams, myaction, myfiles, spinner)
if mergecount==0:
sets = trees[settings["ROOT"]]["root_config"].sets
world_candidates = None
- if "--noreplace" in myopts and \
+ if "selective" in myparams and \
not oneshot and favorites:
# Sets that are not world candidates are filtered
# out here since the favorites list needs to be
world_candidates = [x for x in favorites \
if not (x.startswith(SETPREFIX) and \
not sets[x[1:]].world_candidate)]
- if "--noreplace" in myopts and \
+ if "selective" in myparams and \
not oneshot and world_candidates:
print()
for x in world_candidates:
empty = "empty" in self._dynamic_config.myparams
selective = "selective" in self._dynamic_config.myparams
reinstall = False
- noreplace = "--noreplace" in self._frozen_config.myopts
avoid_update = "--update" not in self._frozen_config.myopts
dont_miss_updates = "--update" in self._frozen_config.myopts
use_ebuild_visibility = self._frozen_config.myopts.get(
continue
cpv = pkg.cpv
- # Make --noreplace take precedence over --newuse.
- if not pkg.installed and noreplace and \
- cpv in vardb.match(atom):
- inst_pkg = self._pkg(pkg.cpv, "installed",
- root_config, installed=True)
- if inst_pkg.visible:
- # If the installed version is masked, it may
- # be necessary to look at lower versions,
- # in case there is a visible downgrade.
- continue
reinstall_for_flags = None
if not pkg.installed or \
print(" ebuilds, or deps you specify on the command-line *will* cause")
print(" Portage to remerge the package, even if it is already installed.")
print(" Note that Portage won't remerge dependencies by default.")
- desc = "Also note that this option takes " + \
- "precedence over options such as --newuse, preventing a package " + \
- "from being reinstalled even though the corresponding USE flag settings " + \
- "may have changed."
- for line in wrap(desc, desc_width):
- print(desc_indent + line)
print()
print(" "+green("--nospinner"))
print(" Disables the spinner regardless of terminal type.")
print()
print(" " + green("--selective") + " [ %s | %s ]" % \
(turquoise("y"), turquoise("n")))
- desc = "This is similar to the --noreplace option, except that it " + \
- "does not take precedence over options such as --newuse. " + \
+ desc = "This identical to the --noreplace option. " + \
"Some options, such as --update, imply --selective. " + \
"Use --selective=n if you want to forcefully disable " + \
"--selective, regardless of options like --update."
},
"--selective": {
- "help" : "similar to the --noreplace but does not take " + \
- "precedence over options such as --newuse",
+ "help" : "identical to --noreplace",
"type" : "choice",
"choices" : true_y_or_n
},