pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/pkgtools/pkglint/files Reduced two errors to warnings ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/6da0c7230f23
branches:  trunk
changeset: 498304:6da0c7230f23
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Fri Aug 19 15:58:30 2005 +0000

description:
Reduced two errors to warnings for the category Makefiles: The sort
order and  subdirectories which are commented out without giving a
reason.

diffstat:

 pkgtools/pkglint/files/pkglint.pl |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (30 lines):

diff -r 9e438dc1bfb1 -r 6da0c7230f23 pkgtools/pkglint/files/pkglint.pl
--- a/pkgtools/pkglint/files/pkglint.pl Fri Aug 19 15:51:48 2005 +0000
+++ b/pkgtools/pkglint/files/pkglint.pl Fri Aug 19 15:58:30 2005 +0000
@@ -11,7 +11,7 @@
 # Freely redistributable.  Absolutely no warranty.
 #
 # From Id: portlint.pl,v 1.64 1998/02/28 02:34:05 itojun Exp
-# $NetBSD: pkglint.pl,v 1.243 2005/08/19 15:32:50 rillig Exp $
+# $NetBSD: pkglint.pl,v 1.244 2005/08/19 15:58:30 rillig Exp $
 #
 # This version contains lots of changes necessary for NetBSD packages
 # done by:
@@ -2069,7 +2069,7 @@
                        my ($comment_flag, $indentation, $subdir, $comment) = ($1, $2, $3, $4);
 
                        if ($comment_flag eq "#" && (!defined($comment) || $comment eq "")) {
-                               $line->log_error("${subdir} commented out without giving a reason.");
+                               $line->log_warning("${subdir} commented out without giving a reason.");
                        }
 
                        if ($indentation ne "\t") {
@@ -2079,7 +2079,7 @@
                        if (defined($prev_subdir) && $subdir eq $prev_subdir) {
                                $line->log_error("${subdir} must only appear once.");
                        } elsif (defined($prev_subdir) && $subdir lt $prev_subdir) {
-                               $line->log_error("${subdir} must come before ${prev_subdir}.");
+                               $line->log_warning("${subdir} should come before ${prev_subdir}.");
                        } else {
                                # correctly ordered
                        }



Home | Main Index | Thread Index | Old Index