summaryrefslogtreecommitdiff
path: root/pkgtools
diff options
context:
space:
mode:
authorrillig <rillig@pkgsrc.org>2009-03-22 05:57:40 +0000
committerrillig <rillig@pkgsrc.org>2009-03-22 05:57:40 +0000
commit840cc6e0534113c1ee9a765218e2e48439d0cf5f (patch)
treefdfa031988b5d97009bae5589a068b8233a4d542 /pkgtools
parent2a2a5da56d13b4db0bb3d4ae410bdce604be9544 (diff)
downloadpkgsrc-840cc6e0534113c1ee9a765218e2e48439d0cf5f.tar.gz
Fixed the .if/.endif handling in the new buildlink3.mk format.
Diffstat (limited to 'pkgtools')
-rw-r--r--pkgtools/pkglint/files/pkglint.pl4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgtools/pkglint/files/pkglint.pl b/pkgtools/pkglint/files/pkglint.pl
index 925fc4143dd..9899d6c7dfd 100644
--- a/pkgtools/pkglint/files/pkglint.pl
+++ b/pkgtools/pkglint/files/pkglint.pl
@@ -1,5 +1,5 @@
#! @PERL@
-# $NetBSD: pkglint.pl,v 1.803 2009/03/22 05:50:12 rillig Exp $
+# $NetBSD: pkglint.pl,v 1.804 2009/03/22 05:57:40 rillig Exp $
#
# pkglint - static analyzer and checker for pkgsrc packages
@@ -6652,7 +6652,7 @@ sub checklines_buildlink3_mk_2009($$$) {
|| expect($lines, \$lineno, qr"^\.\s*include \"\.\./\.\./mk/(\S+)\.buildlink3\.mk\"$")) {
# TODO: Maybe check dependency lines.
- } elsif (expect($lines, \$lineno, qr"^\.if !empty\(PKG_BUILD_OPTIONS\.\Q${bl_pkgbase}\E:M\S+\)$")) {
+ } elsif (expect($lines, \$lineno, qr"^\.if\s")) {
$if_level++;
} elsif (expect($lines, \$lineno, qr"^\.endif.*$")) {