diff --git a/ChangeLog b/ChangeLog index 618aa689..fca5fda1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +11.3.2000 + * Better debugging: + -D implies -t0 + HTML data in debug output + print line number in UrlData.__str__() + 8.3.2000 Version 1.1.1 * FastCGI modules added (no script yet) * CGI script fixes diff --git a/Makefile b/Makefile index fe898745..af53120c 100644 --- a/Makefile +++ b/Makefile @@ -11,6 +11,7 @@ CPPFLAGS = $(SSL_INCLDIR) $(PY_INCLDIR) VERSION=1.1.1 #HOST=treasure.calvinsplayground.de HOST=fsinfo.cs.uni-sb.de +PROXY=www-proxy.uni-sb.de:3128 PACKAGE = linkchecker BZ2PACKAGE = $(PACKAGE)-$(VERSION).tar.bz2 DEBPACKAGE = $(PACKAGE)_$(VERSION)_i386.deb @@ -28,8 +29,9 @@ ssl.so: ssl.o clean: rm -f ssl.{so,o} $(ALLPACKAGES) $(PACKAGE)-out.* -files: all - ./$(PACKAGE) -q -Wtext -Whtml -Wgml -Wsql -R -r2 -v -i "$(HOST)" http://$(HOST)/~calvin/ +.files-stamp: all + ./$(PACKAGE) -q -Wtext -Whtml -Wgml -Wsql -R -r2 -v -P $(PROXY) -i $(HOST) http://$(HOST)/~calvin/ + @touch .files-stamp install: install-dirs install -m644 linkcheck/*.py? $(DESTDIR)/usr/share/$(PACKAGE)/linkcheck @@ -45,13 +47,13 @@ install-dirs: $(DESTDIR)/usr/bin \ $(DESTDIR)/etc -dist: files +dist: .files-stamp dh_clean cd .. && $(TAR) cIhf $(BZ2PACKAGE) $(PACKAGE) cd .. && $(ZIP) -r $(ZIPPACKAGE) $(PACKAGE) fakeroot debian/rules binary -homepage: files +homepage: .files-stamp scp *-out.* shell1.sourceforge.net:/home/groups/linkchecker/htdocs/ scp ChangeLog shell1.sourceforge.net:/home/groups/linkchecker/htdocs/changes.txt @@ -64,4 +66,3 @@ test: echo "Testing $$i. Results are in $$i.result"; \ ./$(PACKAGE) -t0 -v -a $$i > $$i.result 2>&1; \ done - diff --git a/debian/changelog b/debian/changelog index 67225268..acddf6fc 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,15 @@ +linkchecker (1.1.2) unstable; urgency=low + + * See ChangeLog + + -- Bastian Kleineidam Sat, 11 Mar 2000 04:04:52 +0100 + +linkchecker (1.1.1) unstable; urgency=low + + * See ChangeLog + + -- Bastian Kleineidam Wed, 8 Mar 2000 21:08:21 +0100 + linkchecker (1.1.0) unstable; urgency=low * See ChangeLog diff --git a/debian/files b/debian/files index c2b2bb64..5a0454e2 100644 --- a/debian/files +++ b/debian/files @@ -1 +1 @@ -linkchecker_1.1.0_i386.deb web optional +linkchecker_1.1.1_i386.deb web optional diff --git a/linkcheck/Config.py b/linkcheck/Config.py index 4de72a2c..4c03a445 100644 --- a/linkcheck/Config.py +++ b/linkcheck/Config.py @@ -2,7 +2,7 @@ import ConfigParser,sys,os,re,UserDict,string from os.path import expanduser,normpath,normcase,join,isfile import Logging -Version = "1.1.1" +Version = "1.1.2" AppName = "LinkChecker" App = AppName+" "+Version UserAgent = AppName+"/"+Version diff --git a/linkcheck/HttpUrlData.py b/linkcheck/HttpUrlData.py index b23e450f..2b104f0b 100644 --- a/linkcheck/HttpUrlData.py +++ b/linkcheck/HttpUrlData.py @@ -124,6 +124,7 @@ class HttpUrlData(UrlData): self.urlConnection = self.urlConnection.getfile() data = StringUtil.stripHtmlComments(self.urlConnection.read()) self.time = time.time() - t + Config.debug(Config.DebugDelim+data+Config.DebugDelim) return data def isHtml(self): diff --git a/linkcheck/UrlData.py b/linkcheck/UrlData.py index 577d0fc8..0f15464b 100644 --- a/linkcheck/UrlData.py +++ b/linkcheck/UrlData.py @@ -252,7 +252,8 @@ class UrlData: return "urlname="+`self.urlName`+"\nparentName="+`self.parentName`+\ "\nbaseRef="+`self.baseRef`+"\ncached="+`self.cached`+\ "\nrecursionLevel="+`self.recursionLevel`+\ - "\nurlConnection="+str(self.urlConnection) + "\nurlConnection="+str(self.urlConnection)+\ + "\nline="+`self.line` def _getUserPassword(self, config): for rx, _user, _password in config["authentication"]: diff --git a/linkchecker b/linkchecker index 6da46ec4..b38b282e 100755 --- a/linkchecker +++ b/linkchecker @@ -160,6 +160,7 @@ for opt,arg in options: elif opt=="-D" or opt=="--debug": linkcheck.Config.DebugFlag = 1 + config.disableThreading() elif opt=="-e" or opt=="--extern": config["externlinks"].append((re.compile(arg), 0)) @@ -214,7 +215,7 @@ for opt,arg in options: elif opt=="-t" or opt=="--threads": num = int(arg) - if config["threads"]: + if config["threads"] and not linkcheck.Config.DebugFlag: if num>0: config.enableThreading(num) else: