summaryrefslogtreecommitdiff
path: root/pkgtools
diff options
context:
space:
mode:
authorrillig <rillig>2005-08-19 15:58:30 +0000
committerrillig <rillig>2005-08-19 15:58:30 +0000
commit1725d945550a53749c6b6547dab418f4251a0da8 (patch)
treed566a119df9e97d3f86d41c702f484eedcadf416 /pkgtools
parent5a7d6bd193524f4998d3b917aaeaa3fa8f5de9ce (diff)
downloadpkgsrc-1725d945550a53749c6b6547dab418f4251a0da8.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
}