summaryrefslogtreecommitdiff
path: root/pkgtools
diff options
context:
space:
mode:
authorrillig <rillig>2005-11-04 21:30:35 +0000
committerrillig <rillig>2005-11-04 21:30:35 +0000
commit564d1649ca0dc3826f1b97f39fb9b644b790d373 (patch)
tree7deb2db3b51fd208c121526a6dd5ce65fadc2f81 /pkgtools
parent827126e27971e741bcda68f0ccbdda282fe41948 (diff)
downloadpkgsrc-564d1649ca0dc3826f1b97f39fb9b644b790d373.tar.gz
Allow "-" in Tool names.
Diffstat (limited to 'pkgtools')
-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 18647b0ebc6..fd945c62696 100644
--- a/pkgtools/pkglint/files/pkglint.pl
+++ b/pkgtools/pkglint/files/pkglint.pl
@@ -11,7 +11,7 @@
# Freely redistributable. Absolutely no warranty.
#
# From Id: portlint.pl,v 1.64 1998/02/28 02:34:05 itojun Exp
-# $NetBSD: pkglint.pl,v 1.331 2005/11/04 20:39:49 rillig Exp $
+# $NetBSD: pkglint.pl,v 1.332 2005/11/04 21:30:35 rillig Exp $
#
# This version contains lots of changes necessary for NetBSD packages
# done by:
@@ -1576,7 +1576,7 @@ sub checktext_basic_vartype($$$$$) {
}
} elsif ($type eq "Tool") {
- if ($value =~ qr"^(\w+)(?::(\w+))?$") {
+ if ($value =~ qr"^([-\w]+)(?::(\w+))?$") {
my ($toolname, $tooldep) = ($1, $2);
if (!exists(get_tool_names()->{$toolname})) {
$line->log_error("Unknown tool \"${toolname}\".");