From d8f2f87abbaccc3bdde3da8e00747fbc05078ff4 Mon Sep 17 00:00:00 2001 From: rillig Date: Sat, 17 Jun 2006 22:46:45 +0000 Subject: - autofix() may only be called from the checkfile_*() subroutines to avoid duplicate calls. --- pkgtools/pkglint/files/pkglint.pl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'pkgtools/pkglint/files/pkglint.pl') 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($) { -- cgit v1.2.3