summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrillig <rillig>2005-12-05 21:56:13 +0000
committerrillig <rillig>2005-12-05 21:56:13 +0000
commit5d70bffac3d44eaef1300a3827409d032034f137 (patch)
treed4890ccf58056b7e2dd7787dfb8c2b5745661626
parent562875081fd7955c184e31958d453e14d6c6bf2f (diff)
downloadpkgsrc-5d70bffac3d44eaef1300a3827409d032034f137.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.pl8
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) {