summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrillig <rillig@pkgsrc.org>2008-01-01 20:44:29 +0000
committerrillig <rillig@pkgsrc.org>2008-01-01 20:44:29 +0000
commitf09c8701b9e2ddc1d0c1dd57c33fd72fc4b457f4 (patch)
tree3c65fdd39ee109f998ba709a07c14a4354633f24
parent0cc999c0432d8e20160ecd6d5725c2b837aa946d (diff)
downloadpkgsrc-f09c8701b9e2ddc1d0c1dd57c33fd72fc4b457f4.tar.gz
If one of the NO_*_ON_* variables contains something other that
${RESTRICTED}, print the variable name in the warning message. While here, added an explanation for the warning.
-rw-r--r--pkgtools/pkglint/files/pkglint.pl9
1 files changed, 7 insertions, 2 deletions
diff --git a/pkgtools/pkglint/files/pkglint.pl b/pkgtools/pkglint/files/pkglint.pl
index 13db7d2b1a9..73188c88a5b 100644
--- a/pkgtools/pkglint/files/pkglint.pl
+++ b/pkgtools/pkglint/files/pkglint.pl
@@ -1,5 +1,5 @@
#! @PERL@
-# $NetBSD: pkglint.pl,v 1.743 2008/01/01 13:44:11 rillig Exp $
+# $NetBSD: pkglint.pl,v 1.744 2008/01/01 20:44:29 rillig Exp $
#
# pkglint - static analyzer and checker for pkgsrc packages
@@ -5301,7 +5301,12 @@ sub checkline_mk_vartype_basic($$$$$$$$) {
} elsif ($type eq "Restricted") {
if ($value ne "\${RESTRICTED}") {
- $line->log_warning("The only valid value for this variable is \${RESTRICTED}.");
+ $line->log_warning("The only valid value for ${varname} is \${RESTRICTED}.");
+ $line->explain_warning(
+
+"These variables are used to control which files may be mirrored on FTP",
+"servers or CD-ROM collections. They are not intended to mark packages",
+"whose only MASTER_SITES are on ftp.NetBSD.org.");
}
} elsif ($type eq "SVR4PkgName") {