Deprecate --root in favour of --sysroot
The --root option was widely misunderstood, and is now replaced by --sysroot. Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
parent
a7dbe4635b
commit
a278356f75
2 changed files with 2 additions and 11 deletions
|
@ -133,16 +133,6 @@ Options
|
||||||
*NOTE*: If specified, this is an absolute path, and the root path is
|
*NOTE*: If specified, this is an absolute path, and the root path is
|
||||||
not automatically prepended.
|
not automatically prepended.
|
||||||
|
|
||||||
*-r, \--root* <path>::
|
|
||||||
Specify an alternative installation root (default is `/`). This should
|
|
||||||
not be used as a way to install software into `/usr/local` instead of
|
|
||||||
`/usr`.
|
|
||||||
*NOTE*: If database path or log file are not specified on either the
|
|
||||||
command line or in linkman:pacman.conf[5], their default location will
|
|
||||||
be inside this root path.
|
|
||||||
*NOTE*: This option is not suitable for performing operations on a mounted
|
|
||||||
guest system. See '\--sysroot' instead.
|
|
||||||
|
|
||||||
*-v, \--verbose*::
|
*-v, \--verbose*::
|
||||||
Output paths such as as the Root, Conf File, DB Path, Cache Dirs, etc.
|
Output paths such as as the Root, Conf File, DB Path, Cache Dirs, etc.
|
||||||
|
|
||||||
|
|
|
@ -211,7 +211,6 @@ static void usage(int op, const char * const myname)
|
||||||
}
|
}
|
||||||
|
|
||||||
addlist(_(" -b, --dbpath <path> set an alternate database location\n"));
|
addlist(_(" -b, --dbpath <path> set an alternate database location\n"));
|
||||||
addlist(_(" -r, --root <path> set an alternate installation root\n"));
|
|
||||||
addlist(_(" -v, --verbose be verbose\n"));
|
addlist(_(" -v, --verbose be verbose\n"));
|
||||||
addlist(_(" --arch <arch> set an alternate architecture\n"));
|
addlist(_(" --arch <arch> set an alternate architecture\n"));
|
||||||
addlist(_(" --sysroot operate on a mounted guest system (root-only)\n"));
|
addlist(_(" --sysroot operate on a mounted guest system (root-only)\n"));
|
||||||
|
@ -450,6 +449,8 @@ static int parsearg_global(int opt)
|
||||||
break;
|
break;
|
||||||
case OP_ROOT:
|
case OP_ROOT:
|
||||||
case 'r':
|
case 'r':
|
||||||
|
pm_printf(ALPM_LOG_WARNING,
|
||||||
|
_("option --root is deprecated; use --sysroot instead\n"));
|
||||||
free(config->rootdir);
|
free(config->rootdir);
|
||||||
config->rootdir = strdup(optarg);
|
config->rootdir = strdup(optarg);
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Add table
Reference in a new issue