pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/pkgtools/pkglint/files Changed default pkglint_flags t...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/a005647920a0
branches:  trunk
changeset: 493619:a005647920a0
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Tue May 10 19:07:07 2005 +0000

description:
Changed default pkglint_flags to -q -Wno-workdir. Slightly modified the
output format.

diffstat:

 pkgtools/pkglint/files/lintpkgsrc.pl |  14 +++++---------
 1 files changed, 5 insertions(+), 9 deletions(-)

diffs (40 lines):

diff -r 0f12a0b06275 -r a005647920a0 pkgtools/pkglint/files/lintpkgsrc.pl
--- a/pkgtools/pkglint/files/lintpkgsrc.pl      Tue May 10 19:06:58 2005 +0000
+++ b/pkgtools/pkglint/files/lintpkgsrc.pl      Tue May 10 19:07:07 2005 +0000
@@ -1,6 +1,6 @@
 #!@PERL@
 
-# $NetBSD: lintpkgsrc.pl,v 1.99 2005/05/07 00:04:33 rillig Exp $
+# $NetBSD: lintpkgsrc.pl,v 1.100 2005/05/10 19:07:07 rillig Exp $
 
 # Written by David Brownlee <abs%netbsd.org@localhost>.
 #
@@ -73,7 +73,7 @@
 
     $pkgsrcdir = $default_vars->{PKGSRCDIR};
     $pkgdistdir = $default_vars->{DISTDIR};
-    $pkglint_flags = '-v';
+    $pkglint_flags = '-q -Wno-workdir';
 
     if ($opt{r} && !$opt{o} && !$opt{m} && !$opt{p})
        { $opt{o} = $opt{m} = $opt{p} = 1; }
@@ -1153,16 +1153,12 @@
            {
            if (-f "$pkgdir/Makefile")
                {
-               if (!open(PKGLINT, "cd $pkgdir ; pkglint $pkglint_flags|"))
+               if (!open(PKGLINT, "cd $pkgdir && pkglint $pkglint_flags |"))
                    { fail("Unable to run pkglint: $!"); }
-               @output = grep(!/^OK:/ &&
-                            !/^WARN: be sure to cleanup .*work.* before/ &&
-                            !/^WARN: is it a new package/ &&
-                            !/^\d+ fatal errors and \d+ warnings found/
-                            , <PKGLINT> );
+               @output = <PKGLINT>;
                close(PKGLINT);
                if (@output)
-                   { print "===> $cat/$pkgdir\n", @output, "\n"; }
+                   { print "===> $cat/$pkgdir\n\n", @output, "\n"; }
                }
            }
        }



Home | Main Index | Thread Index | Old Index