diff options
author | rillig <rillig> | 2008-01-04 01:43:56 +0000 |
---|---|---|
committer | rillig <rillig> | 2008-01-04 01:43:56 +0000 |
commit | 2d9d35f6905289de648502681c40891462e684b9 (patch) | |
tree | 2d55ac011d5156a65da60f5dc6ea2bca9338947d | |
parent | c9d4928a811c0c699ba022334ba1fa287fc16981 (diff) | |
download | pkgsrc-2d9d35f6905289de648502681c40891462e684b9.tar.gz |
Prepared pkglint for the upcoming cleanup of the .include directives in
mk/*.
-rw-r--r-- | pkgtools/pkglint/files/pkglint.pl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgtools/pkglint/files/pkglint.pl b/pkgtools/pkglint/files/pkglint.pl index 0e54b9ef91d..86059b77929 100644 --- a/pkgtools/pkglint/files/pkglint.pl +++ b/pkgtools/pkglint/files/pkglint.pl @@ -1,5 +1,5 @@ #! @PERL@ -# $NetBSD: pkglint.pl,v 1.745 2008/01/03 16:16:22 rillig Exp $ +# $NetBSD: pkglint.pl,v 1.746 2008/01/04 01:43:56 rillig Exp $ # # pkglint - static analyzer and checker for pkgsrc packages @@ -2327,7 +2327,7 @@ sub load_tool_names() { foreach my $line (@{$lines}) { if ($line->text =~ regex_mk_include) { my ($includefile) = ($1); - if ($includefile =~ qr"^\$\{PKGSRCDIR\}/mk/tools/(.*)$") { + if ($includefile =~ qr"^(?:\$\{PKGSRCDIR\}/mk/tools/)?([^/]+)$") { push(@tool_files, $1); } } |