link-checker commit: List line numbers of broken fragments only, not all fragment line numbers if one or more for a doc are broken.

changeset:   158:0e729193f9b4
user:        ville
date:        Tue Mar 20 21:16:23 2007 +0000
files:       bin/checklink
description:
List line numbers of broken fragments only, not all fragment line numbers if one or more for a doc are broken.


diff -r 933bc52311e0 -r 0e729193f9b4 bin/checklink
--- a/bin/checklink	Tue Mar 20 20:29:18 2007 +0000
+++ b/bin/checklink	Tue Mar 20 21:16:23 2007 +0000
@@ -5,7 +5,7 @@
 # (c) 1999-2006 World Wide Web Consortium
 # based on Renaud Bruyeron's checklink.pl
 #
-# $Id: checklink,v 4.46 2007-03-20 20:29:18 ville Exp $
+# $Id: checklink,v 4.47 2007-03-20 21:16:23 ville Exp $
 #
 # This program is licensed under the W3C(r) Software License:
 #       http://www.w3.org/Consortium/Legal/copyright-software
@@ -128,7 +128,7 @@
   $PROGRAM     = 'W3C-checklink';
   $VERSION     = '4.3';
   $REVISION    = sprintf('version %s (c) 1999-2007 W3C', $VERSION);
-  my ($cvsver) = q$Revision: 4.46 $ =~ /(\d+[\d\.]*\.\d+)/;
+  my ($cvsver) = q$Revision: 4.47 $ =~ /(\d+[\d\.]*\.\d+)/;
   $AGENT       = sprintf('%s/%s [%s] %s',
                          $PROGRAM, $VERSION, $cvsver, LWP::RobotUA->_agent());
 
@@ -1674,7 +1674,7 @@
     foreach my $l (keys %{$links->{$u}{location}}) {
       push (@total_lines, $l);
     }
-    foreach my $f (keys %{$links->{$u}{fragments}}) {
+    foreach my $f (@fragments) {
       next if ($f eq $u && defined($links->{$u}{$u}{LINE_UNKNOWN()}));
       foreach my $l (keys %{$links->{$u}{fragments}{$f}}) {
         push (@total_lines, $l);

Received on Thursday, 5 August 2010 14:47:12 UTC