Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Remove -L flag. It's been deprecated since 1.0.x
Bryan Drewery committed 12 years ago
commit da864d4e48f6e16f9be3816f4840584199b0276e
parent 96cf2f1
6 files changed +6 -27
modified pkg/fetch.c
@@ -68,7 +68,7 @@ exec_fetch(int argc, char **argv)
	pkg_config_bool(PKG_CONFIG_REPO_AUTOUPDATE, &auto_update);
	pkg_config_bool(PKG_CONFIG_ASSUME_ALWAYS_YES, &yes);

-
	while ((ch = getopt(argc, argv, "adgiLqr:Uuxy")) != -1) {
+
	while ((ch = getopt(argc, argv, "adgiqr:Uuxy")) != -1) {
		switch (ch) {
		case 'a':
			match = MATCH_ALL;
@@ -82,9 +82,6 @@ exec_fetch(int argc, char **argv)
		case 'i':
			pkgdb_set_case_sensitivity(false);
			break;
-
		case 'L':
-
			warnx("!!! The -L flag is deprecated and will be removed. Please use -U now.");
-
			/* FALLTHROUGH */
		case 'U':
			auto_update = false;
			break;
modified pkg/install.c
@@ -70,7 +70,7 @@ exec_install(int argc, char **argv)
	pkg_config_bool(PKG_CONFIG_ASSUME_ALWAYS_YES, &yes);
	pkg_config_bool(PKG_CONFIG_REPO_AUTOUPDATE, &auto_update);

-
	while ((ch = getopt(argc, argv, "AfgIiLFnqRr:Uxy")) != -1) {
+
	while ((ch = getopt(argc, argv, "AfgIiFnqRr:Uxy")) != -1) {
		switch (ch) {
		case 'A':
			f |= PKG_FLAG_AUTOMATIC;
@@ -90,9 +90,6 @@ exec_install(int argc, char **argv)
		case 'i':
			pkgdb_set_case_sensitivity(false);
			break;
-
		case 'L':
-
			warnx("!!! The -L flag is deprecated and will be removed. Please use -U now.");
-
			/* FALLTHROUGH */
		case 'U':
			auto_update = false;
			break;
modified pkg/pkg-fetch.8
@@ -15,7 +15,7 @@
.\"     @(#)pkg.8
.\" $FreeBSD$
.\"
-
.Dd March 9, 2013
+
.Dd June 30, 2013
.Dt PKG-FETCH 8
.Os
.Sh NAME
@@ -64,10 +64,6 @@ Make the standard or regular expression
matching against
.Ar pkg-name
case insensitive.
-
.It Fl L
-
Backwards compatbility flag for
-
.Fl U .
-
This is planned to be removed.
.It Fl q
Quiet mode.
Show less output.
modified pkg/pkg-install.8
@@ -15,7 +15,7 @@
.\"     @(#)pkg.8
.\" $FreeBSD$
.\"
-
.Dd June 22, 2013
+
.Dd June 30, 2013
.Dt PKG-INSTALL 8
.Os
.Sh NAME
@@ -122,10 +122,6 @@ Make the standard or the regular expression
matching against
.Ar pkg-name
case insensitive.
-
.It Fl L
-
Backwards compatbility flag for
-
.Fl U .
-
This is planned to be removed.
.It Fl n
Dry-run mode.
The list of changes to packages is always printed, but
modified pkg/pkg-upgrade.8
@@ -15,7 +15,7 @@
.\"     @(#)pkg.8
.\" $FreeBSD$
.\"
-
.Dd June 22, 2013
+
.Dd June 30, 2013
.Dt PKG-UPGRADE 8
.Os
.Sh NAME
@@ -108,10 +108,6 @@ Force reinstalling/upgrading the whole set of packages
If any installation scripts (pre-install or post-install) or deinstallation
scripts (pre-deinstall or post-deinstall) exist for a given package, do not
execute them.
-
.It Fl L
-
Backwards compatbility flag for
-
.Fl U .
-
This is planned to be removed.
.It Fl n
Dry-run mode: show what packages have updates available, but do not perform
any upgrades.
modified pkg/upgrade.c
@@ -62,7 +62,7 @@ exec_upgrade(int argc, char **argv)
	pkg_config_bool(PKG_CONFIG_REPO_AUTOUPDATE, &auto_update);


-
	while ((ch = getopt(argc, argv, "fILnqFr:Uy")) != -1) {
+
	while ((ch = getopt(argc, argv, "fInqFr:Uy")) != -1) {
		switch (ch) {
		case 'f':
			f |= PKG_FLAG_FORCE;
@@ -70,9 +70,6 @@ exec_upgrade(int argc, char **argv)
		case 'I':
			f |= PKG_FLAG_NOSCRIPT;
			break;
-
		case 'L':
-
			warnx("!!! The -L flag is deprecated and will be removed. Please use -U now.");
-
			/* FALLTHROUGH */
		case 'U':
			auto_update = false;
			break;