[Python-modules-commits] r12496 - in packages/python-dns/trunk/debian/patches (1 file)

kitterma-guest at users.alioth.debian.org kitterma-guest at users.alioth.debian.org
Mon Apr 5 04:21:06 UTC 2010


    Date: Monday, April 5, 2010 @ 04:20:56
  Author: kitterma-guest
Revision: 12496

svn add debian/patches/lazy-revlookup.diff

Added:
  packages/python-dns/trunk/debian/patches/lazy-revlookup.diff

Added: packages/python-dns/trunk/debian/patches/lazy-revlookup.diff
===================================================================
--- packages/python-dns/trunk/debian/patches/lazy-revlookup.diff	                        (rev 0)
+++ packages/python-dns/trunk/debian/patches/lazy-revlookup.diff	2010-04-05 04:20:56 UTC (rev 12496)
@@ -0,0 +1,15 @@
+https://sourceforge.net/tracker/index.php?func=detail&aid=2981978&group_id=31674&atid=403047
+
+diff -Nur -x '*.orig' -x '*~' python-dns-2.3.4/DNS/lazy.py python-dns-2.3.4.new/DNS/lazy.py
+--- python-dns-2.3.4/DNS/lazy.py	2007-05-22 16:23:38.000000000 -0400
++++ python-dns-2.3.4.new/DNS/lazy.py	2010-04-04 23:27:15.000000000 -0400
+@@ -17,6 +17,9 @@
+     a.reverse()
+     b = string.join(a, '.')+'.in-addr.arpa'
+     # this will only return one of any records returned.
++    status = Base.DnsRequest(b, qtype = 'ptr').req().header['status']
++    if status != 'NOERROR':
++        return ("DNS query status: " + status)
+     return Base.DnsRequest(b, qtype = 'ptr').req().answers[0]['data']
+ 
+ def mxlookup(name):




More information about the Python-modules-commits mailing list