[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
www/server/source/linc linc.py
From: |
Waclaw Jacek |
Subject: |
www/server/source/linc linc.py |
Date: |
Mon, 02 Apr 2012 00:04:51 +0000 |
CVSROOT: /web/www
Module name: www
Changes by: Waclaw Jacek <wwj> 12/04/02 00:04:51
Modified files:
server/source/linc: linc.py
Log message:
Minor updates to LINC.
CVSWeb URLs:
http://web.cvs.savannah.gnu.org/viewcvs/www/server/source/linc/linc.py?cvsroot=www&r1=1.2&r2=1.3
Patches:
Index: linc.py
===================================================================
RCS file: /web/www/www/server/source/linc/linc.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -b -r1.2 -r1.3
--- linc.py 18 Sep 2011 21:34:56 -0000 1.2
+++ linc.py 2 Apr 2012 00:04:40 -0000 1.3
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
#
# LINC - LINC Is Not Checklink
-# Copyright © 2011 WacÅaw Jacek
+# Copyright © 2011-2012 WacÅaw Jacek
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -33,7 +33,8 @@
# regexp-related defines
-EXCLUDED_DIRECTORIES_REGEXP =
'^(japan|wwwes|wwwin|education/fr|software/[^/]+)$' # Matching directories will
not be entered to check their files or subdirectories.
+EXCLUDED_DIRECTORIES_REGEXP =
'^(japan|wwwes|wwwin|education/fr|press|server/staging|software/[^/]+)$|(^|/)po$'
# Matching directories will not be entered to check their files or
subdirectories.
+EXCLUDED_FILENAMES_REGEXP =
'^server/standards/boilerplate\.html|server/.*whatsnew\.html$'
FILENAMES_TO_CHECK_REGEXP = '\.html$' # Only matching files will be checked.
FTP_LINK_REGEXP = 'ftp://(?P<hostname>[^/:]+)(:(?P<port>[0-9]+))?'
HTTP_ERROR_HEADER = '^HTTP/1\.1 (?P<http_error_code>403|404) ' # What to treat
as a HTTP error header.
@@ -168,13 +169,16 @@
continue
search_directory_for_files( base_directory,
relative_path_to_element )
- else:
+ else: # it's a file
if not re.search( FILENAMES_TO_CHECK_REGEXP,
element_name ):
continue
if ( SKIP_TRANSLATION_FILES == True ) and re.search(
TRANSLATION_REGEXP, element_name ):
continue
+ if re.search( EXCLUDED_FILENAMES_REGEXP,
relative_path_to_element ):
+ continue
+
files_to_check.append( relative_path_to_element )
def socket_connect( socketfd, hostname, port ):
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- www/server/source/linc linc.py,
Waclaw Jacek <=