diff options
author | rillig <rillig> | 2005-11-04 21:30:35 +0000 |
---|---|---|
committer | rillig <rillig> | 2005-11-04 21:30:35 +0000 |
commit | 515267f44b1108abf13e2e992425853f71b23a3c (patch) | |
tree | 7deb2db3b51fd208c121526a6dd5ce65fadc2f81 | |
parent | 61b59aab9f6dc47d324d7da4946be1a282b15666 (diff) | |
download | pkgsrc-515267f44b1108abf13e2e992425853f71b23a3c.tar.gz |
Allow "-" in Tool names.
-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 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}\"."); |