Only merge (or pretend to merge) the dependencies of the packages
specified, not the packages themselves.
.TP
+.BR "\-\-package\-moves[=n]"
+Perform package moves when necessary. This option
+is enabled by default.
+.TP
.BR "\-\-pretend " (\fB\-p\fR)
Instead of actually performing the merge, simply display what *would*
have been installed if \fB\-\-pretend\fR weren't used. Using \fB\-\-pretend\fR
# the only one that's been synced here.
action_metadata(settings, portdb, myopts, porttrees=[myportdir])
- if _global_updates(trees, mtimedb["updates"]):
+ if myopts.get('--package-moves') != 'n' and \
+ _global_updates(trees, mtimedb["updates"]):
mtimedb.commit()
# Reload the whole config from scratch.
settings, trees, mtimedb = load_emerge_config(trees=trees)
print(" Only merge (or pretend to merge) the dependencies of the")
print(" specified packages, not the packages themselves.")
print()
+ print(" " + green("--package-moves") + "[=%s]" % turquoise("n"))
+ desc = "Perform package moves when necessary. This option " + \
+ "is enabled by default."
+ for line in wrap(desc, desc_width):
+ print(desc_indent + line)
+ print()
print(" "+green("--pretend")+" ("+green("-p")+" short option)")
print(" Instead of actually performing the merge, simply display what")
print(" ebuilds and tbz2s *would* have been installed if --pretend")
'--getbinpkgonly' : ('n',),
'--jobs' : valid_integers,
'--keep-going' : ('n',),
+ '--package-moves' : ('n',),
'--rebuilt-binaries' : ('n',),
'--root-deps' : ('rdeps',),
'--select' : ('n',),
"choices" : ("True", "n")
},
+ "--package-moves": {
+ "help" : "perform package moves when necessary",
+ "type" : "choice",
+ "choices" : ("True", "n")
+ },
+
"--rebuilt-binaries": {
"help" : "replace installed packages with binary " + \
"packages that have been rebuilt",
else:
myoptions.keep_going = None
+ if myoptions.package_moves in ("True",):
+ myoptions.package_moves = True
+
if myoptions.rebuilt_binaries in ("True",):
myoptions.rebuilt_binaries = True
if rval != os.EX_OK:
return rval
+ tmpcmdline = []
+ if "--ignore-default-opts" not in myopts:
+ tmpcmdline.extend(settings["EMERGE_DEFAULT_OPTS"].split())
+ tmpcmdline.extend(sys.argv[1:])
+ myaction, myopts, myfiles = parse_opts(tmpcmdline)
+
if myaction not in ('help', 'info', 'version') and \
+ myopts.get('--package-moves') != 'n' and \
_global_updates(trees, mtimedb["updates"]):
mtimedb.commit()
# Reload the whole config from scratch.
if xterm_titles:
xtermTitle("emerge")
- tmpcmdline = []
- if "--ignore-default-opts" not in myopts:
- tmpcmdline.extend(settings["EMERGE_DEFAULT_OPTS"].split())
- tmpcmdline.extend(sys.argv[1:])
- myaction, myopts, myfiles = parse_opts(tmpcmdline)
-
if "--digest" in myopts:
os.environ["FEATURES"] = os.environ.get("FEATURES","") + " digest"
# Reload the whole config from scratch so that the portdbapi internal