[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
www/server/source/linc linc.py
From: |
Pavel Kharitonov |
Subject: |
www/server/source/linc linc.py |
Date: |
Tue, 4 Oct 2016 06:36:25 +0000 (UTC) |
CVSROOT: /web/www
Module name: www
Changes by: Pavel Kharitonov <ineiev> 16/10/04 06:36:25
Modified files:
server/source/linc: linc.py
Log message:
Fix previous commit.
CVSWeb URLs:
http://web.cvs.savannah.gnu.org/viewcvs/www/server/source/linc/linc.py?cvsroot=www&r1=1.30&r2=1.31
Patches:
Index: linc.py
===================================================================
RCS file: /web/www/www/server/source/linc/linc.py,v
retrieving revision 1.30
retrieving revision 1.31
diff -u -b -r1.30 -r1.31
--- linc.py 2 May 2016 15:30:17 -0000 1.30
+++ linc.py 4 Oct 2016 06:36:25 -0000 1.31
@@ -20,7 +20,7 @@
from __future__ import print_function
-LINC_VERSION = 'LINC 0.26'
+LINC_VERSION = 'LINC 0.27'
USAGE = \
'''Usage: %prog [options] [BASE_DIRECTORY]
Check links in HTML files from BASE_DIRECTORY.'''
@@ -243,7 +243,9 @@
report(1, '- - - - -')
return 'couldn\'t find end of ' \
+ 'headers (possibly no content in file)'
+ site = None
match = re.search ('(?P<site>^[^/]*//[^/]+/)', link)
+ if (match != None):
site = match.group('site')
header = webpage[:end_of_headers]
page = webpage[end_of_headers + len(EOH_MARK):]
- www/server/source/linc linc.py,
Pavel Kharitonov <=