summaryrefslogtreecommitdiff
path: root/pkgtools
diff options
context:
space:
mode:
authorrillig <rillig@pkgsrc.org>2006-02-19 16:28:19 +0000
committerrillig <rillig@pkgsrc.org>2006-02-19 16:28:19 +0000
commit4725cccab10d284b72e247273bdb27fd36464610 (patch)
treee8d2d61a9b18329879b0be6386847d66e7b4fb52 /pkgtools
parent7d3672e3a8d7625f6d36a72f1984acc63ca66ff0 (diff)
downloadpkgsrc-4725cccab10d284b72e247273bdb27fd36464610.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.pl7
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() {