diff options
author | rillig <rillig> | 2006-02-19 16:28:19 +0000 |
---|---|---|
committer | rillig <rillig> | 2006-02-19 16:28:19 +0000 |
commit | 3a39faafd1e7af4f5c8380e86b34f980a4b18c43 (patch) | |
tree | e8d2d61a9b18329879b0be6386847d66e7b4fb52 /pkgtools | |
parent | 66a00fdbd5930e71d0740a3c22fbe17824ec6b95 (diff) | |
download | pkgsrc-3a39faafd1e7af4f5c8380e86b34f980a4b18c43.tar.gz |
- Simplified checking for the RCS Id in the first line of patches.
Diffstat (limited to 'pkgtools')
-rw-r--r-- | pkgtools/pkglint/files/pkglint.pl | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/pkgtools/pkglint/files/pkglint.pl b/pkgtools/pkglint/files/pkglint.pl index f97df02ab33..5f6c64db4f1 100644 --- a/pkgtools/pkglint/files/pkglint.pl +++ b/pkgtools/pkglint/files/pkglint.pl @@ -1,5 +1,5 @@ #! @PERL@ -# $NetBSD: pkglint.pl,v 1.528 2006/02/19 15:28:51 rillig Exp $ +# $NetBSD: pkglint.pl,v 1.529 2006/02/19 16:28:19 rillig Exp $ # # pkglint - static analyzer and checker for pkgsrc packages @@ -4060,7 +4060,6 @@ sub checkfile_patch($) { # style: [c] = context diff, [u] = unified diff # scope: [f] = file, [h] = hunk, [l] = line # action: [d] = delete, [m] = modify, [a] = add, [c] = context - use constant re_patch_rcsid => qr"^(\$.*\$)$"; use constant re_patch_text => qr"^(.+)$"; use constant re_patch_empty => qr"^$"; use constant re_patch_cfd => qr"^\*\*\*\s(\S+)(.*)$"; @@ -4170,10 +4169,8 @@ sub checkfile_patch($) { }; my $transitions = - [ [PST_START, re_patch_rcsid, PST_CENTER, sub() { + [ [PST_START, undef, PST_CENTER, sub() { checkline_rcsid($line, ""); - }], [PST_START, undef, PST_CENTER, sub() { - $line->log_error("CVS Id expected."); }], [PST_CENTER, re_patch_empty, PST_TEXT, sub() { # }], [PST_TEXT, re_patch_cfd, PST_CFA, sub() { |