wok view gajim/stuff/host_srv.patch @ rev 20917

updated fdupes (1.40 -> 1.6.1)
author Hans-G?nter Theisgen
date Thu Feb 28 17:10:02 2019 +0100 (2019-02-28)
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: