pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/pkgtools/pkglint/files The "short" names for tools may...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/7c5525eb65d6
branches:  trunk
changeset: 535036:7c5525eb65d6
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Tue Nov 06 14:22:03 2007 +0000

description:
The "short" names for tools may only be used in the predefined
{pre,do,post}-* targets, not in user-defined ones.

diffstat:

 pkgtools/pkglint/files/pkglint.pl |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (19 lines):

diff -r db6eb3a7d8ce -r 7c5525eb65d6 pkgtools/pkglint/files/pkglint.pl
--- a/pkgtools/pkglint/files/pkglint.pl Tue Nov 06 14:13:35 2007 +0000
+++ b/pkgtools/pkglint/files/pkglint.pl Tue Nov 06 14:22:03 2007 +0000
@@ -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 @@
                                        $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(



Home | Main Index | Thread Index | Old Index