For clarity, make egencache --help and man page refer to --config-root
authorZac Medico <zmedico@gentoo.org>
Sat, 3 Apr 2010 00:46:07 +0000 (17:46 -0700)
committerZac Medico <zmedico@gentoo.org>
Sat, 3 Apr 2010 00:46:07 +0000 (17:46 -0700)
parameter as PORTAGE_CONFIGROOT. Thanks to Brian Harring.

bin/egencache
man/egencache.1

index 0766d99cb692545a9a55705a345c261357cbbb84..fc046b711d05bfe1199733afcbd0a0edca7799c6 100755 (executable)
@@ -54,7 +54,7 @@ def parse_args(args):
                dest="cache_dir")
        parser.add_option("--config-root",
                help="location of portage config files",
-               dest="config_root")
+               dest="portage_configroot")
        parser.add_option("--jobs",
                action="store",
                help="max ebuild processes to spawn")
@@ -105,6 +105,7 @@ def parse_args(args):
        else:
                options.load_average = None
 
+       options.config_root = options.portage_configroot
        if options.config_root is not None and \
                not os.path.isdir(options.config_root):
                parser.error("Not a directory: --config-root='%s'" % \
index d0bd1014a58e5ac2a66dcc85afef04c2047ddfc1..78b9c17e5ffd7fa3e73ee46c1c9924a600f7f0db 100644 (file)
@@ -23,7 +23,7 @@ information about why this is necessary.
 .br
 Defaults to /var/cache/edb/dep.
 .TP
-.BR "\-\-config\-root=CONFIG_ROOT"
+.BR "\-\-config\-root=PORTAGE_CONFIGROOT"
 Location of portage config files.
 .br
 Defaults to /.