wok-4.x view gajim/stuff/host_srv.patch @ rev 12427
lxc: use ash shell for lxc-template;fix arch command, use (uname -m)
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Sat Dec 21 12:16:47 2013 +0100 (2013-12-21) |
parents | |
children |
line source
1 --- gajim-0.12.3/src/common/nslookup.py.orig Sun Jun 28 13:34:21 2009
2 +++ gajim-0.12.3/src/common/nslookup.py Sun Jun 28 13:35:23 2009
3 @@ -123,11 +123,11 @@
4 line = helpers.decode_string(line)
5 domain = ufqdn
6 if domain:
7 - rest = line[len(domain):].split('=')
8 + rest = line[len(domain):].split('record')
9 if len(rest) != 2:
10 continue
11 answer_type, props_str = rest
12 - if answer_type.strip() != 'service':
13 + if answer_type.strip() != 'has SRV':
14 continue
15 props = props_str.strip().split(' ')
16 if len(props) < 4:
17 @@ -296,7 +296,7 @@
18 return
20 def _compose_command_args(self):
21 - return ['nslookup', '-type=' + self.type , self.host]
22 + return ['host', '-t ' + self.type , self.host]
24 def _return_result(self):
25 if self.result_handler: