Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Rename install --from-root into install --recursive
Baptiste Daroussin committed 10 years ago
commit a1d1a35799adb31c4855b416265b3575432e206d
parent ff09936
3 files changed +6 -6
modified docs/pkg-install.8
@@ -14,7 +14,7 @@
.\"
.\"     @(#)pkg.8
.\"
-
.Dd October 30, 2014
+
.Dd May 7, 2016
.Dt PKG-INSTALL 8
.Os
.Sh NAME
@@ -29,7 +29,7 @@
.Pp
.Nm
.Op Cm --{automatic,force,no-install-scripts,ignore-missing}
-
.Op Cm --{dry-run,fetch-only,quiet,from-root,no-repo-update,yes}
+
.Op Cm --{dry-run,fetch-only,quiet,recursive,no-repo-update,yes}
.Op Cm --repository Ar reponame
.Op Cm --{case-sensitive,glob,case-insensitive,regex}
.Ar <pkg-origin|pkg-name|pkg-name-version> ...
@@ -158,7 +158,7 @@ Force quiet output, except when
is used, where
.Nm
will always show packages to be installed, upgraded or deleted.
-
.It Fl R , Cm --from-root
+
.It Fl R , Cm --recursive
When used with
.Fl f ,
reinstalls any packages that require the given package.
modified scripts/completion/_pkg.in
@@ -337,7 +337,7 @@ _pkg() {
				'(-n --dry-run -y --yes)'{-y,--yes}'[assume yes when asked for confirmation]' \
				'(-y --yes -n --dry-run)'{-n,--dry-run}'[assume no (dry run) when asked for confirmation]' \
				'(-f --force)'{-f,--force}'[force reinstallation if needed]' \
-
				'(-R --from-root)'{-R,--from-root}'[reinstall every package depending on matching expressions]' \
+
				'(-R --recursive)'{-R,--recursive}'[reinstall every package depending on matching expressions]' \
				'*:available package:_pkg_available' \
				- '(all)' \
				'(* -i --case-insensitive -C --case-sensitive)'{-a,--all}'[process all packages]' \
modified src/install.c
@@ -1,5 +1,5 @@
/*-
-
 * Copyright (c) 2011-2012 Baptiste Daroussin <bapt@FreeBSD.org>
+
 * Copyright (c) 2011-2016 Baptiste Daroussin <bapt@FreeBSD.org>
 * Copyright (c) 2011-2012 Julien Laffaye <jlaffaye@FreeBSD.org>
 * Copyright (c) 2011-2012 Marin Atanasov Nikolov <dnaeon@gmail.com>
 * Copyright (c) 2013-2014 Matthew Seaman <matthew@FreeBSD.org>
@@ -82,7 +82,7 @@ exec_install(int argc, char **argv)
		{ "dry-run",		no_argument,		NULL,	'n' },
		{ "quiet",		no_argument,		NULL,	'q' },
		{ "repository",		required_argument,	NULL,	'r' },
-
		{ "from-root",		no_argument,		NULL,   'R' },
+
		{ "recursive",		no_argument,		NULL,   'R' },
		{ "no-repo-update",	no_argument,		NULL,	'U' },
		{ "regex",		no_argument,		NULL,	'x' },
		{ "yes",		no_argument,		NULL,	'y' },