summaryrefslogtreecommitdiff
path: root/pkgtools
diff options
context:
space:
mode:
authorrillig <rillig@pkgsrc.org>2006-06-17 22:46:45 +0000
committerrillig <rillig@pkgsrc.org>2006-06-17 22:46:45 +0000
commit88fdf601930d2cf94786e595335fd3d22d10fc85 (patch)
tree08c872c32ede5f20834ee305accdb11208077312 /pkgtools
parent56d01034de24c2fc9a82dc1901bff9d5220e25b0 (diff)
downloadpkgsrc-88fdf601930d2cf94786e595335fd3d22d10fc85.tar.gz
- autofix() may only be called from the checkfile_*() subroutines to avoid
duplicate calls.
Diffstat (limited to 'pkgtools')
-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($) {