summaryrefslogtreecommitdiffstats
path: root/CVSROOT/cfg.pm
diff options
context:
space:
mode:
authorjoe <joe@FreeBSD.org>2001-12-01 14:46:32 +0000
committerjoe <joe@FreeBSD.org>2001-12-01 14:46:32 +0000
commit721d79cd4fc58c29bf41b24fdcedbdaef8b51111 (patch)
treee5669c48694caa566c00410384fcc926549c04d1 /CVSROOT/cfg.pm
parentc01a4ef960f756cdf24a8233d901a27042c4220c (diff)
downloadFreeBSD-ports-721d79cd4fc58c29bf41b24fdcedbdaef8b51111.zip
FreeBSD-ports-721d79cd4fc58c29bf41b24fdcedbdaef8b51111.tar.gz
Fix a bug in the local cvsweb URL insertion function.
Spotted by: Mathieu Arnold <arn_mat@club-internet.fr>
Diffstat (limited to 'CVSROOT/cfg.pm')
-rwxr-xr-xCVSROOT/cfg.pm12
1 files changed, 6 insertions, 6 deletions
diff --git a/CVSROOT/cfg.pm b/CVSROOT/cfg.pm
index afb6b83..ede8858 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";
}
OpenPOWER on IntegriCloud