diff options
author | rillig <rillig@pkgsrc.org> | 2005-10-24 18:20:40 +0000 |
---|---|---|
committer | rillig <rillig@pkgsrc.org> | 2005-10-24 18:20:40 +0000 |
commit | 644894185f31968ca95fbeb53eaa341141e7a198 (patch) | |
tree | b522acdc62d3ab8a9734138374ec222681943237 | |
parent | 7f6d4b5cb6cf9d3b439f8cf90f89964c65bf50c3 (diff) | |
download | pkgsrc-644894185f31968ca95fbeb53eaa341141e7a198.tar.gz |
Generally allow $Id$ instead of $NetBSD$ in files from pkgsrc-wip.
-rw-r--r-- | pkgtools/pkglint/files/pkglint.pl | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/pkgtools/pkglint/files/pkglint.pl b/pkgtools/pkglint/files/pkglint.pl index fd7edb65bd2..6e15accdd13 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.302 2005/10/23 23:14:57 rillig Exp $ +# $NetBSD: pkglint.pl,v 1.303 2005/10/24 18:20:40 rillig Exp $ # # This version contains lots of changes necessary for NetBSD packages # done by: @@ -746,7 +746,12 @@ sub checkline_trailing_whitespace($) { sub checkline_rcsid_regex($$$) { my ($line, $prefix_regex, $prefix) = @_; - if ($line->text !~ qr"^${prefix_regex}\$($opt_rcsidstring)(?::[^\$]*|)\$$") { + my ($id) = ($opt_rcsidstring); + + if (Cwd::abs_path($line->file) =~ qr"/wip/") { + $id .= "|Id"; + } + if ($line->text !~ qr"^${prefix_regex}\$(${id})(?::[^\$]*|)\$$") { $line->log_error("\"${prefix}\$${opt_rcsidstring}\$\" expected."); return false; } |