diff options
author | Allan McRae <allan@archlinux.org> | 2018-01-19 12:47:26 +0100 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2018-01-19 12:47:26 +0100 |
commit | a278356f75866f89232e3e6230bbf9fb2dc1893c (patch) | |
tree | c980b8a12ac36a64f9b4b08d76c4c03f4d7bb491 /src | |
parent | a7dbe4635b4af9b5bd927ec0e7a211d1f6c1b0f2 (diff) | |
download | pacman-a278356f75866f89232e3e6230bbf9fb2dc1893c.tar.gz pacman-a278356f75866f89232e3e6230bbf9fb2dc1893c.tar.xz |
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>
Diffstat (limited to 'src')
-rw-r--r-- | src/pacman/pacman.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/pacman/pacman.c b/src/pacman/pacman.c index 8c7f715e..98b3f326 100644 --- a/src/pacman/pacman.c +++ b/src/pacman/pacman.c @@ -211,7 +211,6 @@ static void usage(int op, const char * const myname) } 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(_(" --arch <arch> set an alternate architecture\n")); addlist(_(" --sysroot operate on a mounted guest system (root-only)\n")); @@ -450,6 +449,8 @@ static int parsearg_global(int opt) break; case OP_ROOT: case 'r': + pm_printf(ALPM_LOG_WARNING, + _("option --root is deprecated; use --sysroot instead\n")); free(config->rootdir); config->rootdir = strdup(optarg); break; |