not trigger reinstallation when flags that the user has not
enabled are added or removed.
.TP
+.BR \-\-root=DIR
+Set the \fBROOT\fR environment variable.
+.TP
.BR "\-\-root\-deps"
Install build\-time dependencies to \fBROOT\fR instead of /. This option
should not be enabled under normal circumstances. For currently supported
.TP
\fBROOT\fR = \fI[path]\fR
Use \fBROOT\fR to specify the target root filesystem to be used for
-merging packages or ebuilds. This variable can be set in \fBmake.conf\fR(5).
+merging packages or ebuilds. This variable can be set via the \fB\-\-root\fR
+option or in \fBmake.conf\fR(5) (the command line overrides other settings).
.br
Defaults to /.
.TP
"help":"specify conditions to trigger package reinstallation",
"type":"choice",
"choices":["changed-use"]
- }
+ },
+ "--root": {
+ "help" : "specify the target root filesystem for merging packages",
+ "action" : "store"
+ },
}
from optparse import OptionParser
os.environ["PORTAGE_DEBUG"] = "1"
if "--config-root" in myopts:
os.environ["PORTAGE_CONFIGROOT"] = myopts["--config-root"]
+ if "--root" in myopts:
+ os.environ["ROOT"] = myopts["--root"]
# Portage needs to ensure a sane umask for the files it creates.
os.umask(022)