diff options
author | rillig <rillig@pkgsrc.org> | 2005-09-04 00:33:18 +0000 |
---|---|---|
committer | rillig <rillig@pkgsrc.org> | 2005-09-04 00:33:18 +0000 |
commit | 7847cbd3443610e9d168bb6965f0e307133ae02b (patch) | |
tree | a04ba9c8c6d20268fc504a33a8ccca08c5a0df22 /pkgtools | |
parent | 60107e10a3f8c8651bf50b3b28c4b86d10e97df2 (diff) | |
download | pkgsrc-7847cbd3443610e9d168bb6965f0e307133ae02b.tar.gz |
Changed the wording of the diagnostics message when a patch contains an
RCS tag. Suggested by hubertf.
Diffstat (limited to 'pkgtools')
-rw-r--r-- | pkgtools/pkglint/files/pkglint.pl | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/pkgtools/pkglint/files/pkglint.pl b/pkgtools/pkglint/files/pkglint.pl index 1148ae0c47b..53318ec4e03 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.276 2005/09/04 00:26:13 rillig Exp $ +# $NetBSD: pkglint.pl,v 1.277 2005/09/04 00:33:18 rillig Exp $ # # This version contains lots of changes necessary for NetBSD packages # done by: @@ -1074,10 +1074,9 @@ sub checkfile_patches_patch($$) { checkline_rcsid($lines->[0], ""); foreach my $line (@{$lines}[1..$#{$lines}]) { - if ($line->text =~ /$regex_known_rcs_tag/) { - # XXX: see the pkgsrc guide how to fix that - # TODO: that section still needs to be written - $line->log_warning("Possible RCS tag \"\$$1\$\". Please try to remove that line from the patch."); + if ($line->text =~ $regex_known_rcs_tag) { + my ($tag) = ($1); + $line->log_warning("Possible RCS tag \"\$${tag}\$\". Please remove it by reducing the number of context lines using pkgdiff or \"diff -U[210]\"."); } } checklines_trailing_empty_lines($lines); |