summaryrefslogtreecommitdiff
path: root/pkgtools
diff options
context:
space:
mode:
authorrillig <rillig@pkgsrc.org>2005-08-19 15:58:30 +0000
committerrillig <rillig@pkgsrc.org>2005-08-19 15:58:30 +0000
commit0045e32bfab38c77f277e57a0a8f736b70dc908b (patch)
treed566a119df9e97d3f86d41c702f484eedcadf416 /pkgtools
parentd7978962f9b9092cac84044a5bdc51ab306b5a03 (diff)
downloadpkgsrc-0045e32bfab38c77f277e57a0a8f736b70dc908b.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.pl6
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
}