wok-stable view gajim/stuff/host_srv.patch @ rev 3575

Add python-pyyaml
author Liu Peng <rocky@slitaz.org>
date Fri Jun 26 01:17:10 2009 +0000 (2009-06-26)
parents
children
line source
1 use host to resolve domain
2 --- gajim-0.12.1/src/common/nslookup.py.orig 2009-04-18 02:11:36.000000000 +0800
3 +++ gajim-0.12.1/src/common/nslookup.py 2009-04-18 02:14:37.000000000 +0800
4 @@ -123,11 +123,11 @@
5 line = helpers.decode_string(line)
6 domain = ufqdn
7 if domain:
8 - rest = line[len(domain):].split('=')
9 + rest = line[len(domain):].split('record')
10 if len(rest) != 2:
11 continue
12 answer_type, props_str = rest
13 - if answer_type.strip() != 'service':
14 + if answer_type.strip() != 'has SRV':
15 continue
16 props = props_str.strip().split(' ')
17 if len(props) < 4:
18 @@ -296,7 +296,7 @@
19 return
21 def _compose_command_args(self):
22 - return ['nslookup', '-type=' + self.type , self.host]
23 + return ['host', '-t ' + self.type , self.host]
25 def _return_result(self):
26 if self.result_handler: