Package: python-dns Version: 2.3.0-5.1 Severity: normal Hello,
When /etc/resolv.conf contains something like that :
search foo
nameserver
There is the following error :
Traceback (most recent call last):
File "./start-wotomae.py", line 26, in ?
from wotomae.controllers import Root
File "/src/work/soc/mainline/src/wotomae/controllers.py", line 20, in ?
import checks
File "/src/work/soc/mainline/src/wotomae/checks.py", line 138, in ?
class BtsFields(formencode.Schema):
File "/src/work/soc/mainline/src/wotomae/checks.py", line 142, in BtsFields
not_empty=True)
File "/usr/lib/python2.4/site-packages/formencode/validators.py", line 1146,
in __init__
DNS.Base.ParseResolvConf()
File "/var/lib/python-support/python2.4/DNS/Base.py", line 43, in
ParseResolvConf
defaults['server'].append(fields[1])
IndexError: list index out of range
The patch i have attached fix this problem.
Regards,
Arnaud Fontaine
-- System Information:
Debian Release: testing/unstable
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1,
'experimental')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.17.4-maggie
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Versions of packages python-dns depends on:
ii python 2.3.5-11 An interactive high-level object-o
ii python-support 0.3.8 automated rebuilding support for p
python-dns recommends no packages.
-- no debconf information
--- Base.py.old 2006-07-20 14:35:54.000000000 +0200
+++ Base.py 2006-07-20 14:36:04.000000000 +0200
@@ -29,7 +29,7 @@
if not line or line[0]==';' or line[0]=='#':
continue
fields=string.split(line)
- if len(fields) == 0:
+ if len(fields) < 2:
continue
if fields[0]=='domain':
defaults['domain']=fields[1]
pgpfVwo1MlezY.pgp
Description: PGP signature

