pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/pkgtools/pkglint/files If one of the NO_*_ON_* variabl...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/5e70a4989a5b
branches:  trunk
changeset: 537017:5e70a4989a5b
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Tue Jan 01 20:44:29 2008 +0000

description:
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.

diffstat:

 pkgtools/pkglint/files/pkglint.pl |  9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diffs (24 lines):

diff -r 6af1bbb80f6b -r 5e70a4989a5b pkgtools/pkglint/files/pkglint.pl
--- a/pkgtools/pkglint/files/pkglint.pl Tue Jan 01 20:22:36 2008 +0000
+++ b/pkgtools/pkglint/files/pkglint.pl Tue Jan 01 20:44:29 2008 +0000
@@ -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 @@
 
        } 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") {



Home | Main Index | Thread Index | Old Index