mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-04-08 08:30:59 +00:00
color logger fixes
git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@19 e7d03fd6-7b0d-0410-9947-9c21f3af8025
This commit is contained in:
parent
a5d91fe28d
commit
fa058602bc
8 changed files with 49 additions and 36 deletions
|
|
@ -1,13 +1,14 @@
|
|||
29.2.2000
|
||||
* GML output additions
|
||||
* HTTPS support
|
||||
* Colored output fixes
|
||||
|
||||
28.2.2000
|
||||
* the patched PyLR parser generator works
|
||||
* wrote a GML parser
|
||||
|
||||
25.2.2000
|
||||
* changed the name to LinkChecker. My old Java LinkChecker will
|
||||
* changed the name to LinkChecker; my old Java LinkChecker will
|
||||
disappear because I do not maintain it anymore
|
||||
|
||||
21.2.2000
|
||||
|
|
|
|||
2
Makefile
2
Makefile
|
|
@ -4,7 +4,7 @@ SSL_INCLDIR = -I/usr/include/openssl
|
|||
SSL_LIBDIR = -L/usr/lib
|
||||
|
||||
CC = gcc
|
||||
CFLAGS = -O2 -Wall
|
||||
CFLAGS = -O6 -Wall
|
||||
LDFLAGS = -shared $(SSL_LIBDIR) $(PY_LIBDIR)
|
||||
CPPFLAGS = $(SSL_INCLDIR) $(PY_INCLDIR)
|
||||
|
||||
|
|
|
|||
41
debian/changelog
vendored
41
debian/changelog
vendored
|
|
@ -1,94 +1,101 @@
|
|||
pylice (0.9.0) unstable; urgency=low
|
||||
linkchecker (1.1.0) unstable; urgency=low
|
||||
|
||||
* See ChangeLog
|
||||
* Renamed this project from pylice to LinkChecker
|
||||
|
||||
-- Bastian Kleineidam <calvin@cs.uni-sb.de> Tue, 29 Feb 2000 16:58:58 +0100
|
||||
|
||||
linkchecker (0.9.0) unstable; urgency=low
|
||||
|
||||
* See ChangeLog
|
||||
|
||||
-- Bastian Kleineidam <calvin@cs.uni-sb.de> Mon, 21 Feb 2000 16:26:22 +0100
|
||||
|
||||
pylice (0.8.0) unstable; urgency=low
|
||||
linkchecker (0.8.0) unstable; urgency=low
|
||||
|
||||
* See ChangeLog
|
||||
|
||||
-- Bastian Kleineidam <calvin@cs.uni-sb.de> Thu, 10 Feb 2000 21:32:55 +0000
|
||||
|
||||
pylice (0.7.0) unstable; urgency=low
|
||||
linkchecker (0.7.0) unstable; urgency=low
|
||||
|
||||
* See CHANGES
|
||||
|
||||
-- Bastian Kleineidam <calvin@cs.uni-sb.de> Thu, 27 Jan 2000 23:15:24 +0100
|
||||
|
||||
pylice (0.6.2) unstable; urgency=low
|
||||
linkchecker (0.6.2) unstable; urgency=low
|
||||
|
||||
* See CHANGES
|
||||
|
||||
-- Bastian Kleineidam <calvin@cs.uni-sb.de> Wed, 26 Jan 2000 11:41:28 +0100
|
||||
|
||||
pylice (0.6.1) unstable; urgency=low
|
||||
linkchecker (0.6.1) unstable; urgency=low
|
||||
|
||||
* See CHANGES
|
||||
|
||||
-- Bastian Kleineidam <calvin@cs.uni-sb.de> Tue, 25 Jan 2000 21:11:15 +0100
|
||||
|
||||
pylice (0.6.0) unstable; urgency=low
|
||||
linkchecker (0.6.0) unstable; urgency=low
|
||||
|
||||
* See CHANGES
|
||||
|
||||
-- Bastian Kleineidam <calvin@cs.uni-sb.de> Wed, 19 Jan 2000 00:25:55 +0100
|
||||
|
||||
pylice (0.5.0) unstable; urgency=low
|
||||
linkchecker (0.5.0) unstable; urgency=low
|
||||
|
||||
* See CHANGES
|
||||
|
||||
-- Bastian Kleineidam <calvin@cs.uni-sb.de> Tue, 18 Jan 2000 00:39:31 +0100
|
||||
|
||||
pylice (0.4.4) unstable; urgency=low
|
||||
linkchecker (0.4.4) unstable; urgency=low
|
||||
|
||||
* See CHANGES
|
||||
|
||||
-- Bastian Kleineidam <calvin@cs.uni-sb.de> Mon, 17 Jan 2000 12:21:10 +0100
|
||||
|
||||
pylice (0.4.3) unstable; urgency=low
|
||||
linkchecker (0.4.3) unstable; urgency=low
|
||||
|
||||
* See CHANGES
|
||||
|
||||
-- Bastian Kleineidam <calvin@cs.uni-sb.de> Fri, 14 Jan 2000 02:10:20 +0100
|
||||
|
||||
pylice (0.4.2) unstable; urgency=low
|
||||
linkchecker (0.4.2) unstable; urgency=low
|
||||
|
||||
* See CHANGES
|
||||
|
||||
-- Bastian Kleineidam <calvin@cs.uni-sb.de> Thu, 13 Jan 2000 21:48:23 +0100
|
||||
|
||||
pylice (0.4.1) unstable; urgency=low
|
||||
linkchecker (0.4.1) unstable; urgency=low
|
||||
|
||||
* See CHANGES
|
||||
|
||||
-- Bastian Kleineidam <calvin@cs.uni-sb.de> Wed, 12 Jan 2000 13:34:42 +0100
|
||||
|
||||
pylice (0.4.0) unstable; urgency=low
|
||||
linkchecker (0.4.0) unstable; urgency=low
|
||||
|
||||
* See CHANGES
|
||||
|
||||
-- Bastian Kleineidam <calvin@cs.uni-sb.de> Tue, 11 Jan 2000 13:48:53 +0100
|
||||
|
||||
pylice (0.3.0) unstable; urgency=low
|
||||
linkchecker (0.3.0) unstable; urgency=low
|
||||
|
||||
* See CHANGES
|
||||
|
||||
-- Bastian Kleineidam <calvin@cs.uni-sb.de> Tue, 11 Jan 2000 00:01:37 +0100
|
||||
|
||||
pylice (0.2.1) unstable; urgency=low
|
||||
linkchecker (0.2.1) unstable; urgency=low
|
||||
|
||||
* See CHANGES
|
||||
|
||||
-- Bastian Kleineidam <calvin@cs.uni-sb.de> Mon, 10 Jan 2000 22:01:54 +0100
|
||||
|
||||
pylice (0.2.0) unstable; urgency=low
|
||||
linkchecker (0.2.0) unstable; urgency=low
|
||||
|
||||
* See CHANGES
|
||||
|
||||
-- Bastian Kleineidam <calvin@cs.uni-sb.de> Mon, 10 Jan 2000 21:28:38 +0100
|
||||
|
||||
pylice (0.1.0) unstable; urgency=low
|
||||
linkchecker (0.1.0) unstable; urgency=low
|
||||
|
||||
* New release. Missing features: robots.txt exclusion standard,
|
||||
proxy setting, user/password setting and
|
||||
|
|
@ -96,7 +103,7 @@ pylice (0.1.0) unstable; urgency=low
|
|||
|
||||
-- Bastian Kleineidam <calvin@cs.uni-sb.de> Sun, 9 Jan 2000 14:32:15 +0100
|
||||
|
||||
pylice (0.0.1) unstable; urgency=low
|
||||
linkchecker (0.0.1) unstable; urgency=low
|
||||
|
||||
* Initial Release.
|
||||
|
||||
|
|
|
|||
6
debian/control
vendored
6
debian/control
vendored
|
|
@ -7,14 +7,16 @@ Standards-Version: 3.0.1
|
|||
Package: linkchecker
|
||||
Architecture: any
|
||||
Depends: python-base
|
||||
Suggests: libssl09, libssl09-dev
|
||||
Description: LinkChecker is a link checker written in Python
|
||||
With LinkChecker you can check your HTML documents for broken links.
|
||||
Features:
|
||||
o recursive checking
|
||||
o multithreaded
|
||||
o output can be colored or normal text, HTML, SQL or a GML sitemap graph
|
||||
o HTTP, FTP, mailto:, Gopher, Telnet and local file links are supported
|
||||
Javascript and HTTPS links are currently ignored
|
||||
o HTTP/1.1 and 1.0, HTTPS, FTP, mailto:, Gopher, Telnet and
|
||||
local file links are supported
|
||||
Javascript links are currently ignored
|
||||
o restrict link checking to your local domain
|
||||
o HTTP proxy support
|
||||
o give username/password for HTTP and FTP authorization
|
||||
|
|
|
|||
2
debian/files
vendored
2
debian/files
vendored
|
|
@ -1 +1 @@
|
|||
pylice_0.8.0_i386.deb web optional
|
||||
linkchecker_1.1.0_i386.deb web optional
|
||||
|
|
|
|||
4
debian/postinst.debhelper
vendored
4
debian/postinst.debhelper
vendored
|
|
@ -1,7 +1,7 @@
|
|||
# Automatically added by dh_installdocs
|
||||
if [ "$1" = "configure" ]; then
|
||||
if [ -d /usr/doc -a ! -e /usr/doc/pylice -a -d /usr/share/doc/pylice ]; then
|
||||
ln -sf ../share/doc/pylice /usr/doc/pylice
|
||||
if [ -d /usr/doc -a ! -e /usr/doc/linkchecker -a -d /usr/share/doc/linkchecker ]; then
|
||||
ln -sf ../share/doc/linkchecker /usr/doc/linkchecker
|
||||
fi
|
||||
fi
|
||||
# End automatically added section
|
||||
|
|
|
|||
4
debian/prerm.debhelper
vendored
4
debian/prerm.debhelper
vendored
|
|
@ -1,5 +1,5 @@
|
|||
# Automatically added by dh_installdocs
|
||||
if [ \( "$1" = "upgrade" -o "$1" = "remove" \) -a -L /usr/doc/pylice ]; then
|
||||
rm -f /usr/doc/pylice
|
||||
if [ \( "$1" = "upgrade" -o "$1" = "remove" \) -a -L /usr/doc/linkchecker ]; then
|
||||
rm -f /usr/doc/linkchecker
|
||||
fi
|
||||
# End automatically added section
|
||||
|
|
|
|||
|
|
@ -3,14 +3,14 @@ import sys,time,Config,StringUtil
|
|||
# ANSI color codes
|
||||
ESC="\x1b"
|
||||
COL_PARENT =ESC+"[37m" # white
|
||||
COL_URL =ESC+"[35m" # magenta
|
||||
COL_REAL =ESC+"[35m" # magenta
|
||||
COL_BASE =ESC+"[36m" # cyan
|
||||
COL_URL =ESC+"[0m" # standard
|
||||
COL_REAL =ESC+"[36m" # cyan
|
||||
COL_BASE =ESC+"[35m" # magenty
|
||||
COL_VALID =ESC+"[1;32m" # green
|
||||
COL_INVALID =ESC+"[1;31m" # red
|
||||
COL_INFO =ESC+"[0;37m" # standard
|
||||
COL_INFO =ESC+"[0m" # standard
|
||||
COL_WARNING =ESC+"[1;33m" # yellow
|
||||
COL_DLTIME =ESC+"[0;37m" # standard
|
||||
COL_DLTIME =ESC+"[0m" # standard
|
||||
COL_RESET =ESC+"[0m" # reset to standard
|
||||
|
||||
# HTML colors
|
||||
|
|
@ -214,20 +214,23 @@ class ColoredLogger(StandardLogger):
|
|||
if self.prefix:
|
||||
self.fd.write("o\n")
|
||||
self.fd.write("\nParent URL "+COL_PARENT+urlData.parentName+\
|
||||
COL_RESET+"\n")
|
||||
self.prefix = 1
|
||||
COL_RESET+"\n")
|
||||
self.currentPage = urlData.parentName
|
||||
self.prefix = 1
|
||||
else:
|
||||
if self.prefix:
|
||||
self.fd.write("o\n")
|
||||
self.prefix = 0
|
||||
self.currentPage=None
|
||||
|
||||
if self.prefix:
|
||||
self.fd.write("|\n+- ")
|
||||
else:
|
||||
self.fd.write("\n")
|
||||
self.fd.write("URL "+COL_URL+urlData.urlName+COL_RESET)
|
||||
if urlData.line: self.fd.write(" (line "+`urlData.line`+")")
|
||||
if urlData.line: self.fd.write(", line "+`urlData.line`+"")
|
||||
if urlData.cached:
|
||||
self.fd.write("(cached)\n")
|
||||
self.fd.write(" (cached)\n")
|
||||
else:
|
||||
self.fd.write("\n")
|
||||
|
||||
|
|
@ -266,7 +269,7 @@ class ColoredLogger(StandardLogger):
|
|||
|
||||
if self.prefix:
|
||||
self.fd.write("| ")
|
||||
self.fd.write("Result ")
|
||||
self.fd.write("Result ")
|
||||
if urlData.valid:
|
||||
self.fd.write(COL_VALID+urlData.validString+COL_RESET+"\n")
|
||||
else:
|
||||
|
|
|
|||
Loading…
Reference in a new issue