diff options
author | rillig <rillig@pkgsrc.org> | 2005-11-04 21:30:35 +0000 |
---|---|---|
committer | rillig <rillig@pkgsrc.org> | 2005-11-04 21:30:35 +0000 |
commit | 7f807412219ac17668be54840d2a610c53f4f9db (patch) | |
tree | 7deb2db3b51fd208c121526a6dd5ce65fadc2f81 /pkgtools | |
parent | d795cf4a2e434daf93a9282e7608ada1df3dc915 (diff) | |
download | pkgsrc-7f807412219ac17668be54840d2a610c53f4f9db.tar.gz |
Allow "-" in Tool names.
Diffstat (limited to 'pkgtools')
-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}\"."); |