Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Add and document PKG_CREATE_VERBOSE to control 'pkg create' verbosity. Historically, 'pkg create' has always been quiet unlike all the other commands, which are verbose by default. Now we have the options to make it otherwise, leave it as quiet by default so we don't breaky anybodies' scripts. Setting this config value makes 'pkg create' behave like the other commands: verbose by default.
Matthew Seaman committed 11 years ago
commit ddf795a8f39dd6113261220bcf9a2a08fba5799c
parent 303b4e6
2 files changed +15 -1
modified docs/pkg.conf.5
@@ -15,7 +15,7 @@
.\"     @(#)pkg.1
.\" $FreeBSD$
.\"
-
.Dd February 1, 2015
+
.Dd February 8, 2015
.Dt PKG.CONF 5
.Os
.Sh NAME
@@ -174,6 +174,14 @@ Default: NO.
Specifies the cache directory for packages.
Default:
.Pa /var/cache/pkg
+
.It Cm PKG_CREATE_VERBOSE: boolean
+
When set to a
+
.Sy true
+
value, make
+
.Xr pkg_create 8
+
use verbose mode as standard.
+
Default:
+
.Sy false
.It Cm PKG_DBDIR: string
Specifies the directory to use for storing the package
database files.
modified libpkg/pkg_config.c
@@ -348,6 +348,12 @@ static struct config_entry c[] = {
		"NO",
		"Prefer repos with higher priority during upgrade"
	},
+
	{
+
		PKG_BOOL,
+
		"PKG_CREATE_VERBOSE",
+
		"NO",
+
		"Enable verbose mode for 'pkg create'",
+
	},
};

static bool parsed = false;