summaryrefslogtreecommitdiff
path: root/pkgtools
diff options
context:
space:
mode:
authorrillig <rillig>2005-05-10 19:07:07 +0000
committerrillig <rillig>2005-05-10 19:07:07 +0000
commit86d3a16ad0a5172831a461df2b2244bfc5de2217 (patch)
tree74915c54d4464a68249b62585c54ed27c0bc9ce7 /pkgtools
parentac8a48dafbadd8c48942070397b10e52457334fc (diff)
downloadpkgsrc-86d3a16ad0a5172831a461df2b2244bfc5de2217.tar.gz
Changed default pkglint_flags to -q -Wno-workdir. Slightly modified the
output format.
Diffstat (limited to 'pkgtools')
-rwxr-xr-xpkgtools/pkglint/files/lintpkgsrc.pl14
1 files changed, 5 insertions, 9 deletions
diff --git a/pkgtools/pkglint/files/lintpkgsrc.pl b/pkgtools/pkglint/files/lintpkgsrc.pl
index 9e00a4aae27..e207e97ef94 100755
--- a/pkgtools/pkglint/files/lintpkgsrc.pl
+++ b/pkgtools/pkglint/files/lintpkgsrc.pl
@@ -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>.
#
@@ -73,7 +73,7 @@ if ($opt{D} && @ARGV)
$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 @@ sub pkglint_all_pkgsrc
{
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"; }
}
}
}