summaryrefslogtreecommitdiff
path: root/pkgtools/pkglint
diff options
context:
space:
mode:
authorrillig <rillig>2009-11-20 12:02:33 +0000
committerrillig <rillig>2009-11-20 12:02:33 +0000
commitfffe4f20d3a271e0370ddd2aec43b32c0e1e272b (patch)
tree95264b14d9ca6665116596682c56a984bde1286a /pkgtools/pkglint
parentdd46a49d2b80b3dd2ef0e3292418b703e0581d48 (diff)
downloadpkgsrc-fffe4f20d3a271e0370ddd2aec43b32c0e1e272b.tar.gz
The GNU tools usually provide replacements for their counterparts whose
name doesn't start with a "g". Fixes PR 40261.
Diffstat (limited to 'pkgtools/pkglint')
-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 7840eedd20a..c6425e69568 100644
--- a/pkgtools/pkglint/files/pkglint.pl
+++ b/pkgtools/pkglint/files/pkglint.pl
@@ -1,5 +1,5 @@
#! @PERL@
-# $NetBSD: pkglint.pl,v 1.820 2009/09/10 21:22:56 joerg Exp $
+# $NetBSD: pkglint.pl,v 1.821 2009/11/20 12:02:33 rillig Exp $
#
# pkglint - static analyzer and checker for pkgsrc packages
@@ -4473,7 +4473,7 @@ sub checkline_mk_shelltext($$) {
"package via pkg_add.");
} elsif (exists(get_tool_names()->{$shellword})) {
- if (!exists($mkctx_tools->{$shellword})) {
+ if (!exists($mkctx_tools->{$shellword}) && !exists($mkctx_tools->{"g$shellword"})) {
$line->log_warning("The \"${shellword}\" tool is used but not added to USE_TOOLS.");
}