summaryrefslogtreecommitdiff
path: root/net/bittorrent
diff options
context:
space:
mode:
authorspz <spz@pkgsrc.org>2009-11-06 07:54:07 +0000
committerspz <spz@pkgsrc.org>2009-11-06 07:54:07 +0000
commit3c2200212d2af2708d81032d85b991939af780bf (patch)
treeaa2050135c188f792a1a09dcff21844d79097150 /net/bittorrent
parentf68045c13ac54469242cdcd429940746d867c615 (diff)
downloadpkgsrc-3c2200212d2af2708d81032d85b991939af780bf.tar.gz
fix syntax error for python26 in khashmir/test_krpc.py
patch kudos Attila Tóth for Gentoo
Diffstat (limited to 'net/bittorrent')
-rw-r--r--net/bittorrent/distinfo3
-rw-r--r--net/bittorrent/patches/patch-ad33
2 files changed, 35 insertions, 1 deletions
diff --git a/net/bittorrent/distinfo b/net/bittorrent/distinfo
index 804e4b7be41..025b34dca42 100644
--- a/net/bittorrent/distinfo
+++ b/net/bittorrent/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.20 2006/02/26 22:43:33 tron Exp $
+$NetBSD: distinfo,v 1.21 2009/11/06 07:54:07 spz Exp $
SHA1 (BitTorrent-4.4.0.tar.gz) = 8ca3e52c8049ff29a6785da410d6aa80c6726882
RMD160 (BitTorrent-4.4.0.tar.gz) = 9e743b3178142855d289743d4430598353fb4d3f
@@ -6,3 +6,4 @@ Size (BitTorrent-4.4.0.tar.gz) = 1255281 bytes
SHA1 (patch-aa) = f295a93a91a0a8ba428edf8b7fb9357e1eb624bd
SHA1 (patch-ab) = e392544d6f45b7639d2d7a2bbb86ff61e9bee3e9
SHA1 (patch-ac) = f8aa299b7dc096b483f9199d9171bf2da088b8eb
+SHA1 (patch-ad) = f1b590aaf9cf7404f99d27154586ea08f642efd2
diff --git a/net/bittorrent/patches/patch-ad b/net/bittorrent/patches/patch-ad
new file mode 100644
index 00000000000..ba0d6f84bdc
--- /dev/null
+++ b/net/bittorrent/patches/patch-ad
@@ -0,0 +1,33 @@
+$NetBSD: patch-ad,v 1.5 2009/11/06 07:54:07 spz Exp $
+
+--- khashmir/test_krpc.py.orig 2006-01-31 20:16:51.000000000 +0000
++++ khashmir/test_krpc.py
+@@ -44,20 +44,20 @@ class KRPCTests(TestCase):
+ self.r = RawServer(Event(), d)
+
+ addr = ('127.0.0.1', 1180)
+- self.as = self.r.create_udpsocket(addr[1], addr[0], True)
++ self.asock = self.r.create_udpsocket(addr[1], addr[0], True)
+ self.af = Receiver(addr)
+- self.a = hostbroker(self.af, addr, self.as, self.r.add_task)
+- self.r.start_listening_udp(self.as, self.a)
++ self.a = hostbroker(self.af, addr, self.asock, self.r.add_task)
++ self.r.start_listening_udp(self.asock, self.a)
+
+ addr = ('127.0.0.1', 1181)
+- self.bs = self.r.create_udpsocket(addr[1], addr[0], True)
++ self.bsock = self.r.create_udpsocket(addr[1], addr[0], True)
+ self.bf = Receiver(addr)
+- self.b = hostbroker(self.bf, addr, self.bs, self.r.add_task)
+- self.r.start_listening_udp(self.bs, self.b)
++ self.b = hostbroker(self.bf, addr, self.bsock, self.r.add_task)
++ self.r.start_listening_udp(self.bsock, self.b)
+
+ def tearDown(self):
+- self.as.close()
+- self.bs.close()
++ self.asock.close()
++ self.bsock.close()
+
+ def testSimpleMessage(self):
+ self.noisy = 0