resolv.conf

git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@150 e7d03fd6-7b0d-0410-9947-9c21f3af8025
This commit is contained in:
calvin 2000-08-21 22:01:58 +00:00
parent 276aa36107
commit b0c3d92ec8
3 changed files with 9 additions and 5 deletions

View file

@ -17,10 +17,8 @@ def ParseResolvConf():
global defaults
lines=open("/etc/resolv.conf").readlines()
for line in lines:
string.strip(line)
if not line:
continue
if line[0]==';' or line[0]=='#':
line = string.strip(line)
if (not line) or line[0]==';' or line[0]=='#':
continue
fields=string.split(line)
if fields[0]=='domain':

6
debian/changelog vendored
View file

@ -1,3 +1,9 @@
linkchecker (1.2.5) unstable; urgency=low
* fix /etc/resolv.conf parsing again (this time for real)
-- Bastian Kleineidam <calvin@users.sourceforge.net> Mon, 21 Aug 2000 23:59:35 +0200
linkchecker (1.2.4) unstable; urgency=low
* fixed parsing of /etc/resolv.conf with empty lines

View file

@ -107,7 +107,7 @@ class LCDistribution(Distribution):
setup (name = "LinkChecker",
version = "1.2.4",
version = "1.2.5",
description = "check links of HTML pages",
author = "Bastian Kleineidam",
author_email = "calvin@users.sourceforge.net",