diff options
author | rillig <rillig@pkgsrc.org> | 2005-08-19 15:58:30 +0000 |
---|---|---|
committer | rillig <rillig@pkgsrc.org> | 2005-08-19 15:58:30 +0000 |
commit | a5a057df387d56aefa001ed2448f7206f387dfb2 (patch) | |
tree | d566a119df9e97d3f86d41c702f484eedcadf416 /pkgtools | |
parent | bb0f990f1afe5413be546fbd6b694b26352c7476 (diff) | |
download | pkgsrc-a5a057df387d56aefa001ed2448f7206f387dfb2.tar.gz |
Reduced two errors to warnings for the category Makefiles: The sort
order and subdirectories which are commented out without giving a
reason.
Diffstat (limited to 'pkgtools')
-rw-r--r-- | pkgtools/pkglint/files/pkglint.pl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pkgtools/pkglint/files/pkglint.pl b/pkgtools/pkglint/files/pkglint.pl index 449c6f30daf..f9d6c125bd0 100644 --- a/pkgtools/pkglint/files/pkglint.pl +++ b/pkgtools/pkglint/files/pkglint.pl @@ -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 @@ sub checkdir_category($) { 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 @@ sub checkdir_category($) { 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 } |