diff options
author | rillig <rillig@pkgsrc.org> | 2008-01-04 01:43:56 +0000 |
---|---|---|
committer | rillig <rillig@pkgsrc.org> | 2008-01-04 01:43:56 +0000 |
commit | 906ad2915792221889b066969ba4af91973cdda7 (patch) | |
tree | 2d55ac011d5156a65da60f5dc6ea2bca9338947d /pkgtools | |
parent | 56363b1929495edeac5d1a9cbf1c6c591c234f96 (diff) | |
download | pkgsrc-906ad2915792221889b066969ba4af91973cdda7.tar.gz |
Prepared pkglint for the upcoming cleanup of the .include directives in
mk/*.
Diffstat (limited to 'pkgtools')
-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); } } |