wok-stable view gajim/stuff/host_srv.patch @ rev 10353
gcc: Removed gawk in build depends. Added check like the one glibc has to install if cook script is found. Fixed tazwok cookorder i hope.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Sun May 22 16:40:19 2011 +0000 (2011-05-22) |
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: