summaryrefslogtreecommitdiff
path: root/pkgtools/pkglint/files/pkglint.pl
diff options
context:
space:
mode:
Diffstat (limited to 'pkgtools/pkglint/files/pkglint.pl')
-rw-r--r--pkgtools/pkglint/files/pkglint.pl16
1 files changed, 8 insertions, 8 deletions
diff --git a/pkgtools/pkglint/files/pkglint.pl b/pkgtools/pkglint/files/pkglint.pl
index d45ac6419f9..cae3642af66 100644
--- a/pkgtools/pkglint/files/pkglint.pl
+++ b/pkgtools/pkglint/files/pkglint.pl
@@ -1,5 +1,5 @@
#! @PERL@
-# $NetBSD: pkglint.pl,v 1.836 2012/07/09 21:57:31 wiz Exp $
+# $NetBSD: pkglint.pl,v 1.837 2012/07/09 22:11:00 wiz Exp $
#
# pkglint - static analyzer and checker for pkgsrc packages
@@ -4760,16 +4760,16 @@ sub checkline_mk_vardef($$$) {
my $perms = get_variable_perms($line, $varname);
my $needed = { "=" => "s", "!=" => "s", "?=" => "d", "+=" => "a", ":=" => "s" }->{$op};
-
+ my %full = ( "a" => "append", "d" => "default", "p" => "preprocess", "s" => "set", "t" => "runtime" );
if (index($perms, $needed) == -1) {
- $line->log_warning("Permission [${needed}] requested for ${varname}, but only [${perms}] is allowed.");
+ $line->log_warning("Permission [$full{$needed}] requested for ${varname}, but only [$full{$perms}] is allowed.");
$line->explain_warning(
"The available permissions are:",
-"\ta\tappend something using +=",
-"\td\tset a default value using ?=",
-"\ts\tset a variable using :=, =, !=",
-"\tp\tuse a variable during preprocessing",
-"\tu\tuse a variable at runtime",
+"\tappend\t\tappend something using +=",
+"\tdefault\t\tset a default value using ?=",
+"\tpreprocess\tuse a variable during preprocessing",
+"\truntime\t\tuse a variable at runtime",
+"\tset\t\tset a variable using :=, =, !=",
"",
"A \"?\" means that it is not yet clear which permissions are allowed",
"and which aren't.");