pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/pkgtools/pkglint/files - autofix() may only be called ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/4f48fbd7736b
branches:  trunk
changeset: 514778:4f48fbd7736b
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Sat Jun 17 22:46:45 2006 +0000

description:
- autofix() may only be called from the checkfile_*() subroutines to avoid
  duplicate calls.

diffstat:

 pkgtools/pkglint/files/pkglint.pl |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (34 lines):

diff -r 8dab6a676cc2 -r 4f48fbd7736b pkgtools/pkglint/files/pkglint.pl
--- a/pkgtools/pkglint/files/pkglint.pl Sat Jun 17 22:42:00 2006 +0000
+++ b/pkgtools/pkglint/files/pkglint.pl Sat Jun 17 22:46:45 2006 +0000
@@ -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 @@
        }
 
        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 @@
        }
 
        checklines_mk($lines);
+       autofix($lines);
 }
 
 sub checkfile_package_Makefile($$$) {
@@ -5925,6 +5925,7 @@
                }
        }
        checklines_trailing_empty_lines($lines);
+       autofix($lines);
 }
 
 sub checkfile($) {



Home | Main Index | Thread Index | Old Index