diff options
-rw-r--r-- | pkgtools/pkglint/files/pkglint.pl | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/pkgtools/pkglint/files/pkglint.pl b/pkgtools/pkglint/files/pkglint.pl index 29212550a51..f6369cefa37 100644 --- a/pkgtools/pkglint/files/pkglint.pl +++ b/pkgtools/pkglint/files/pkglint.pl @@ -11,7 +11,7 @@ # Freely redistributable. Absolutely no warranty. # # From Id: portlint.pl,v 1.64 1998/02/28 02:34:05 itojun Exp -# $NetBSD: pkglint.pl,v 1.168 2005/05/22 23:53:56 rillig Exp $ +# $NetBSD: pkglint.pl,v 1.169 2005/05/23 00:10:42 rillig Exp $ # # This version contains lots of changes necessary for NetBSD packages # done by: @@ -589,7 +589,7 @@ sub check_package() { # we need to handle the Makefile first to get some variables log_info(NO_FILE, NO_LINE_NUMBER, "Checking Makefile."); - if (checkfile_Makefile("Makefile")) { + if (!checkfile_Makefile("Makefile")) { log_error("$opt_packagedir/Makefile", NO_LINE_NUMBER, "Cannot be read."); return false; } @@ -1393,6 +1393,7 @@ sub checkfile_Makefile($) { # ...nor settings of TEST_TARGET & BUILD_TARGET $j =~ s/\nTEST_TARGET[\t ]*.*=[\t ]*[^\n]*\n/\nTEST_TARGET=#replaced\n/; $j =~ s/\nBUILD_TARGET[\t ]*.*=[\t ]*[^\n]*\n/\nBUILD_TARGET=#replaced\n/; + $j =~ s/\n(?:PKGSRC_)?USE_TOOLS[ \t]*\+=[ \t]*[^\n]*\n/\nUSE_TOOLS=#replaced\n/; if ($opt_warn_directcmd) { foreach my $i (keys %cmdnames) { if ($j =~ /[ \t\/@]$i[ \t\n;]/) { |