[Python-modules-commits] r27730 - in packages/python-dns/trunk/debian (4 files)
kitterman at users.alioth.debian.org
kitterman at users.alioth.debian.org
Mon Feb 17 06:44:33 UTC 2014
Date: Monday, February 17, 2014 @ 06:44:32
Author: kitterman
Revision: 27730
* Add debian/patches/fix-named-perf to update named-perf.py to not require
the obolsete timing module (Closes: #694785)
* Bump standards version to 3.9.5 without further change
Added:
packages/python-dns/trunk/debian/patches/fix-named-perf
Modified:
packages/python-dns/trunk/debian/changelog
packages/python-dns/trunk/debian/control
packages/python-dns/trunk/debian/patches/series
Modified: packages/python-dns/trunk/debian/changelog
===================================================================
--- packages/python-dns/trunk/debian/changelog 2014-02-17 05:33:50 UTC (rev 27729)
+++ packages/python-dns/trunk/debian/changelog 2014-02-17 06:44:32 UTC (rev 27730)
@@ -1,3 +1,11 @@
+python-dns (2.3.6-3) unstable; urgency=low
+
+ * Add debian/patches/fix-named-perf to update named-perf.py to not require
+ the obolsete timing module (Closes: #694785)
+ * Bump standards version to 3.9.5 without further change
+
+ -- Scott Kitterman <scott at kitterman.com> Mon, 17 Feb 2014 01:24:17 -0500
+
python-dns (2.3.6-2) unstable; urgency=low
[ Jakub Wilk ]
Modified: packages/python-dns/trunk/debian/control
===================================================================
--- packages/python-dns/trunk/debian/control 2014-02-17 05:33:50 UTC (rev 27729)
+++ packages/python-dns/trunk/debian/control 2014-02-17 06:44:32 UTC (rev 27730)
@@ -6,7 +6,7 @@
Build-Depends: debhelper (>= 8.1), python-all (>= 2.6.5-2~), quilt (>= 0.46-7)
Vcs-Svn: svn://anonscm.debian.org/python-modules/packages/python-dns/trunk/
Vcs-Browser: http://anonscm.debian.org/viewvc/python-modules/packages/python-dns/trunk/
-Standards-Version: 3.9.4
+Standards-Version: 3.9.5
Homepage: http://sourceforge.net/projects/pydns/
X-Python-Version: >= 2.4
Added: packages/python-dns/trunk/debian/patches/fix-named-perf
===================================================================
--- packages/python-dns/trunk/debian/patches/fix-named-perf (rev 0)
+++ packages/python-dns/trunk/debian/patches/fix-named-perf 2014-02-17 06:44:32 UTC (rev 27730)
@@ -0,0 +1,41 @@
+See Debian #694785
+Patch by Scott Kitterman, <scott at kitterman.com>
+Date: 2014-02-17
+
+Index: python-dns-2.3.6/tools/named-perf.py
+===================================================================
+--- python-dns-2.3.6.orig/tools/named-perf.py 2001-07-19 02:43:15.000000000 -0400
++++ python-dns-2.3.6/tools/named-perf.py 2014-02-17 01:16:28.104483559 -0500
+@@ -18,7 +18,7 @@
+ rpts = 5
+
+ def main():
+- import DNS, timing, socket, time
++ import DNS, socket, time
+ res = {}
+ for server in servers:
+ res[server] = [100000,0,0,0] # min,max,tot,failed
+@@ -27,12 +27,12 @@
+ for server in servers:
+ d = DNS.DnsRequest(server=server,timeout=1)
+ fail = 0
+- timing.start()
++ timingstart = time.time()
+ try:
+ r=d.req(name=what,qtype=querytype)
+ except DNS.Error:
+ fail = 1
+- timing.finish()
++ timingfinish = time.time()
+ if fail:
+ res[server][3] = res[server][3] + 1
+ print "(failed)",res[server][3]
+@@ -40,7 +40,7 @@
+ if r.header['ancount'] == 0:
+ print "WARNING: Server",server,"got no answers for", \
+ what, querytype
+- t = timing.milli()
++ t = int(1000 * (timingfinish - timingstart))
+ print server,"took",t,"ms for",what,querytype
+ res[server][0] = min(t,res[server][0])
+ res[server][1] = max(t,res[server][1])
Modified: packages/python-dns/trunk/debian/patches/series
===================================================================
--- packages/python-dns/trunk/debian/patches/series 2014-02-17 05:33:50 UTC (rev 27729)
+++ packages/python-dns/trunk/debian/patches/series 2014-02-17 06:44:32 UTC (rev 27730)
@@ -1,2 +1,3 @@
+fix-named-perf
pydns_timeout.patch
examples-interpreter.diff
More information about the Python-modules-commits
mailing list