wok-6.x annotate gajim/stuff/host_srv.patch @ rev 13919

netkit-rsh: fix compile_rules
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Jan 25 17:08:55 2013 +0100 (2013-01-25)
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: