summaryrefslogtreecommitdiff
path: root/pkgtools/pkglint/files/pkglint.pl
diff options
context:
space:
mode:
authorrillig <rillig>2006-06-17 22:46:45 +0000
committerrillig <rillig>2006-06-17 22:46:45 +0000
commitd8f2f87abbaccc3bdde3da8e00747fbc05078ff4 (patch)
tree08c872c32ede5f20834ee305accdb11208077312 /pkgtools/pkglint/files/pkglint.pl
parenteaf76afd2153abd9bc11db7bfdd0cb0322057d76 (diff)
downloadpkgsrc-d8f2f87abbaccc3bdde3da8e00747fbc05078ff4.tar.gz
- autofix() may only be called from the checkfile_*() subroutines to avoid
duplicate calls.
Diffstat (limited to 'pkgtools/pkglint/files/pkglint.pl')
-rw-r--r--pkgtools/pkglint/files/pkglint.pl5
1 files changed, 3 insertions, 2 deletions
diff --git a/pkgtools/pkglint/files/pkglint.pl b/pkgtools/pkglint/files/pkglint.pl
index 8ddb291aa28..5db2d86ec65 100644
--- a/pkgtools/pkglint/files/pkglint.pl
+++ b/pkgtools/pkglint/files/pkglint.pl
@@ -1,5 +1,5 @@
#! @PERL@
-# $NetBSD: pkglint.pl,v 1.626 2006/06/17 17:09:48 rillig Exp $
+# $NetBSD: pkglint.pl,v 1.627 2006/06/17 22:46:45 rillig Exp $
#
# pkglint - static analyzer and checker for pkgsrc packages
@@ -4847,7 +4847,6 @@ sub checklines_mk($) {
}
checklines_trailing_empty_lines($lines);
- autofix($lines);
if ($#{$mkctx_indentations} != 0) {
$lines->[-1]->log_error("Directive indentation is not 0, but ".$mkctx_indentations->[-1]." at EOF.");
@@ -5285,6 +5284,7 @@ sub checkfile_mk($) {
}
checklines_mk($lines);
+ autofix($lines);
}
sub checkfile_package_Makefile($$$) {
@@ -5925,6 +5925,7 @@ sub checkfile_PLIST($) {
}
}
checklines_trailing_empty_lines($lines);
+ autofix($lines);
}
sub checkfile($) {