W3C home > Mailing lists > Public > www-validator-cvs@w3.org > August 2010

link-checker commit: Use add_link() for recording DTD URLs for consistency.

From: Mercurial notifier <nobody@w3.org>
Date: Thu, 05 Aug 2010 14:47:07 +0000
To: link-checker updates <www-validator-cvs@w3.org>
Message-Id: <E1Oh1it-0005pn-8K@blinky.w3.org>
changeset:   161:106486c6cbb6
user:        ville
date:        Fri Mar 30 20:13:53 2007 +0000
files:       bin/checklink
description:
Use add_link() for recording DTD URLs for consistency.


diff -r c81b094f6aee -r 106486c6cbb6 bin/checklink
--- a/bin/checklink	Fri Mar 30 19:47:23 2007 +0000
+++ b/bin/checklink	Fri Mar 30 20:13:53 2007 +0000
@@ -5,7 +5,7 @@
 # (c) 1999-2007 World Wide Web Consortium
 # based on Renaud Bruyeron's checklink.pl
 #
-# $Id: checklink,v 4.49 2007-03-30 19:47:23 ville Exp $
+# $Id: checklink,v 4.50 2007-03-30 20:13:53 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.49 $ =~ /(\d+[\d\.]*\.\d+)/;
+  my ($cvsver) = q$Revision: 4.50 $ =~ /(\d+[\d\.]*\.\d+)/;
   $AGENT       = sprintf('%s/%s [%s] %s',
                          $PROGRAM, $VERSION, $cvsver, LWP::RobotUA->_agent());
 
@@ -1363,7 +1363,7 @@
       # Store the doctype
       $self->doctype($1) if $1;
       # If there is a link to the DTD, record it
-      $self->{Links}{$3}{$line}++ if (!$self->{only_anchors} && $3);
+      $self->add_link($3, $line) if (!$self->{only_anchors} && $3);
     }
   }
 
Received on Thursday, 5 August 2010 14:47:13 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:17:43 UTC