diff options
author | rillig <rillig@pkgsrc.org> | 2005-12-05 21:56:13 +0000 |
---|---|---|
committer | rillig <rillig@pkgsrc.org> | 2005-12-05 21:56:13 +0000 |
commit | 404ae4e7151d75b2cad5c032c5b41c1d67e2e371 (patch) | |
tree | d4890ccf58056b7e2dd7787dfb8c2b5745661626 | |
parent | 79c16d74db3a56df373ec72ac41969186ad6a88f (diff) | |
download | pkgsrc-404ae4e7151d75b2cad5c032c5b41c1d67e2e371.tar.gz |
- The heuristics for unnecessary .undef directives after .for were
unreliable, hence they are not fixed (deleted) automatically.
-rw-r--r-- | pkgtools/pkglint/files/pkglint.pl | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/pkgtools/pkglint/files/pkglint.pl b/pkgtools/pkglint/files/pkglint.pl index 66b09ed6616..748b242d242 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.415 2005/12/05 21:46:18 rillig Exp $ +# $NetBSD: pkglint.pl,v 1.416 2005/12/05 21:56:13 rillig Exp $ # # This version contains lots of changes necessary for NetBSD packages # done by: @@ -2750,17 +2750,11 @@ sub checklines_package_Makefile($) { } } elsif ($directive eq "undef" && defined($args)) { - my $all_unnecessary = true; foreach my $var (split(qr"\s+", $args)) { if (exists($for_variables->{$var})) { $line->log_note("Using \".undef\" after a \".for\" loop is unnecessary."); - } else { - $all_unnecessary = false; } } - if ($all_unnecessary) { - $line->delete(); - } } } elsif ($text =~ regex_mk_dependency) { |