Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Rename pkg-fetch -d to -R to be more clear as recursive
Bryan Drewery committed 13 years ago
commit 5642066681e010edf2abc6dd91e463cefe16d55f
parent 0505b4e
2 files changed +7 -7
modified pkg/fetch.c
@@ -42,7 +42,7 @@
void
usage_fetch(void)
{
-
	fprintf(stderr, "usage: pkg fetch [-r reponame] [-yqgxXadL] <pkg-name> <...>\n\n");
+
	fprintf(stderr, "usage: pkg fetch [-r reponame] [-yqgxXaRL] <pkg-name> <...>\n\n");
	fprintf(stderr, "For more information see 'pkg help fetch'.\n");
}

@@ -61,7 +61,7 @@ exec_fetch(int argc, char **argv)
	bool auto_update = true;
	match_t match = MATCH_EXACT;

-
	while ((ch = getopt(argc, argv, "ygxXr:qaLd")) != -1) {
+
	while ((ch = getopt(argc, argv, "ygxXr:qaLR")) != -1) {
		switch (ch) {
		case 'y':
			yes = true;
@@ -87,7 +87,7 @@ exec_fetch(int argc, char **argv)
		case 'L':
			auto_update = false;
			break;
-
		case 'd':
+
		case 'R':
			flags |= PKG_LOAD_DEPS;
			break;
		default:
modified pkg/pkg-fetch.8
@@ -15,7 +15,7 @@
.\"     @(#)pkg.8
.\" $FreeBSD$
.\"
-
.Dd May 24, 2012
+
.Dd July 2, 2012
.Dt PKG-FETCH 8
.Os
.Sh NAME
@@ -24,7 +24,7 @@
.Sh SYNOPSIS
.Nm
.Op Fl r Ar reponame
-
.Op Fl yqgxXadL
+
.Op Fl yqgxXaRL
.Ar <pkg-name>
.Op ...
.Sh DESCRIPTION
@@ -71,8 +71,8 @@ as an extended regular expression.
Don't auto update the remote database with
.Xr pkg-update 8 .
Use the local cache only.
-
.It Fl d
-
Fetch the package and it's dependencies as well.
+
.It Fl R
+
Recursively fetch the package and its dependencies as well.
.El
.Sh ENVIRONMENT
The following environment variables affect the execution of