wok annotate gajim/stuff/host_srv.patch @ rev 7606

Add disktype.
author Christopher Rogers <slaxemulator@gmail.com>
date Sat Dec 11 08:17:35 2010 +0000 (2010-12-11)
parents
children
rev   line source
rocky@3594 1 --- gajim-0.12.3/src/common/nslookup.py.orig Sun Jun 28 13:34:21 2009
rocky@3594 2 +++ gajim-0.12.3/src/common/nslookup.py Sun Jun 28 13:35:23 2009
rocky@3594 3 @@ -123,11 +123,11 @@
rocky@3594 4 line = helpers.decode_string(line)
rocky@3594 5 domain = ufqdn
rocky@3594 6 if domain:
rocky@3594 7 - rest = line[len(domain):].split('=')
rocky@3594 8 + rest = line[len(domain):].split('record')
rocky@3594 9 if len(rest) != 2:
rocky@3594 10 continue
rocky@3594 11 answer_type, props_str = rest
rocky@3594 12 - if answer_type.strip() != 'service':
rocky@3594 13 + if answer_type.strip() != 'has SRV':
rocky@3594 14 continue
rocky@3594 15 props = props_str.strip().split(' ')
rocky@3594 16 if len(props) < 4:
rocky@3594 17 @@ -296,7 +296,7 @@
rocky@3594 18 return
rocky@3594 19
rocky@3594 20 def _compose_command_args(self):
rocky@3594 21 - return ['nslookup', '-type=' + self.type , self.host]
rocky@3594 22 + return ['host', '-t ' + self.type , self.host]
rocky@3594 23
rocky@3594 24 def _return_result(self):
rocky@3594 25 if self.result_handler: