1 |
hawking 07/10/01 17:16:23 |
2 |
|
3 |
Added: formencode-0.7.1-verify_domain.patch |
4 |
digest-formencode-0.7.1-r2 |
5 |
Log: |
6 |
revbump. fixed domain verification, bug 194093 thanks to Jacob Smullyan |
7 |
(Portage version: 2.1.3.11) |
8 |
|
9 |
Revision Changes Path |
10 |
1.1 dev-python/formencode/files/formencode-0.7.1-verify_domain.patch |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/formencode/files/formencode-0.7.1-verify_domain.patch?rev=1.1&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/formencode/files/formencode-0.7.1-verify_domain.patch?rev=1.1&content-type=text/plain |
14 |
|
15 |
Index: formencode-0.7.1-verify_domain.patch |
16 |
=================================================================== |
17 |
--- formencode/validators.py 2007-04-01 00:06:43.000000000 +0300 |
18 |
+++ formencode/validators.py 2007-10-01 19:30:53.000000000 +0300 |
19 |
@@ -1230,8 +1230,10 @@ |
20 |
if self.resolve_domain: |
21 |
assert have_dns, "pyDNS should be available" |
22 |
try: |
23 |
- a=DNS.DnsRequest(domain).req().answers |
24 |
- dnsdomains=[x['data'] for x in a if x['typename'] in ('A', 'MX')] |
25 |
+ a=DNS.DnsRequest(domain, qtype='mx').req().answers |
26 |
+ if not a: |
27 |
+ a=DNS.DnsRequest(domain, qtype='a').req().answers |
28 |
+ dnsdomains=[x['data'] for x in a] |
29 |
except (socket.error, DNS.DNSError), e: |
30 |
raise Invalid( |
31 |
self.message('socketError', state, error=e), |
32 |
|
33 |
|
34 |
|
35 |
1.1 dev-python/formencode/files/digest-formencode-0.7.1-r2 |
36 |
|
37 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/formencode/files/digest-formencode-0.7.1-r2?rev=1.1&view=markup |
38 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/formencode/files/digest-formencode-0.7.1-r2?rev=1.1&content-type=text/plain |
39 |
|
40 |
Index: digest-formencode-0.7.1-r2 |
41 |
=================================================================== |
42 |
MD5 86ee82f7e808d2b7973b13a96bb740cc FormEncode-0.7.1.tar.gz 137539 |
43 |
RMD160 841251a4174070e1ad7c6be8dd75e5beebf92166 FormEncode-0.7.1.tar.gz 137539 |
44 |
SHA256 5ac89b638851882de78b7bbebcff994fb807181367da990df1d8095bd6f350f9 FormEncode-0.7.1.tar.gz 137539 |
45 |
|
46 |
|
47 |
|
48 |
-- |
49 |
gentoo-commits@g.o mailing list |