diff options
author | rillig <rillig@pkgsrc.org> | 2007-11-06 14:22:03 +0000 |
---|---|---|
committer | rillig <rillig@pkgsrc.org> | 2007-11-06 14:22:03 +0000 |
commit | 8247838eb80203d8492ead741124ad29b0cea8f6 (patch) | |
tree | 72415e1061ea2259baafe0559ff4661252b63584 /pkgtools/pkglint | |
parent | d74e2767f747413af65336849f3c940a71f35c9a (diff) | |
download | pkgsrc-8247838eb80203d8492ead741124ad29b0cea8f6.tar.gz |
The "short" names for tools may only be used in the predefined
{pre,do,post}-* targets, not in user-defined ones.
Diffstat (limited to 'pkgtools/pkglint')
-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 8ad89246711..7cba69dadd9 100644 --- a/pkgtools/pkglint/files/pkglint.pl +++ b/pkgtools/pkglint/files/pkglint.pl @@ -1,5 +1,5 @@ #! @PERL@ -# $NetBSD: pkglint.pl,v 1.726 2007/11/04 12:17:10 rillig Exp $ +# $NetBSD: pkglint.pl,v 1.727 2007/11/06 14:22:03 rillig Exp $ # # pkglint - static analyzer and checker for pkgsrc packages @@ -4539,7 +4539,7 @@ sub checkline_mk_shelltext($$) { $line->log_warning("The \"${plain_tool}\" tool is used but not added to USE_TOOLS."); } - if (defined($mkctx_target) && $mkctx_target =~ qr"^(?:pre|do|post)-") { + if (defined($mkctx_target) && $mkctx_target =~ qr"^(?:pre|do|post)-(?:extract|patch|wrapper|configure|build|install|package|clean)$") { if (!exists(get_required_vartool_varnames()->{$vartool})) { $opt_warn_extra and $line->log_note("You can write \"${plain_tool}\" instead of \"${shellword}\"."); $opt_warn_extra and $line->explain_note( |