diff options
author | joe <joe@FreeBSD.org> | 2001-12-01 22:46:32 +0800 |
---|---|---|
committer | joe <joe@FreeBSD.org> | 2001-12-01 22:46:32 +0800 |
commit | 721d79cd4fc58c29bf41b24fdcedbdaef8b51111 (patch) | |
tree | e5669c48694caa566c00410384fcc926549c04d1 /CVSROOT | |
parent | c01a4ef960f756cdf24a8233d901a27042c4220c (diff) | |
download | freebsd-ports-gnome-721d79cd4fc58c29bf41b24fdcedbdaef8b51111.tar.gz freebsd-ports-gnome-721d79cd4fc58c29bf41b24fdcedbdaef8b51111.tar.zst freebsd-ports-gnome-721d79cd4fc58c29bf41b24fdcedbdaef8b51111.zip |
Fix a bug in the local cvsweb URL insertion function.
Spotted by: Mathieu Arnold <arn_mat@club-internet.fr>
Diffstat (limited to 'CVSROOT')
-rwxr-xr-x | CVSROOT/cfg.pm | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/CVSROOT/cfg.pm b/CVSROOT/cfg.pm index afb6b830e716..ede88581e270 100755 --- a/CVSROOT/cfg.pm +++ b/CVSROOT/cfg.pm @@ -230,12 +230,13 @@ sub add_cvsweb_entry { } # Add the url links + my $skip = 0; foreach (@input) { - # Skip any trailing blank lines. - unless ($_) { - push @output, $_; - next; - } + # The revision block is terminated with an empty line. + $skip = 1 if $_ =~ /^\s*$/; + + push @output, $_; + next if $skip; my ($rev, $add, $sub, $file, $status) = split; @@ -257,7 +258,6 @@ sub add_cvsweb_entry { } else { $extra = ".diff?r1=$prevrev&r2=$rev&f=h"; } - push @output, $_; push @output, "$baseurl$extra"; } |