From 6837ee4e22b3900ae27241e27c7d4835d275e530 Mon Sep 17 00:00:00 2001 From: lioux Date: Wed, 12 Oct 2005 21:43:23 +0000 Subject: Silence a warning message meant for developers only --- net-p2p/py-bittorrent-devel/Makefile | 1 + .../files/patch-BitTorrent__RawServer_twisted.py | 33 ++++++++++++++++++++-- net/py-bittorrent-devel/Makefile | 1 + .../files/patch-BitTorrent__RawServer_twisted.py | 33 ++++++++++++++++++++-- 4 files changed, 62 insertions(+), 6 deletions(-) diff --git a/net-p2p/py-bittorrent-devel/Makefile b/net-p2p/py-bittorrent-devel/Makefile index 0f802199eae1..1d4a773d38bb 100644 --- a/net-p2p/py-bittorrent-devel/Makefile +++ b/net-p2p/py-bittorrent-devel/Makefile @@ -7,6 +7,7 @@ PORTNAME= BitTorrent PORTVERSION= 4.1.6 +PORTREVISION= 1 PORTEPOCH= 1 CATEGORIES?= net python MASTER_SITES= http://www.bittorrent.com/dl/ \ diff --git a/net-p2p/py-bittorrent-devel/files/patch-BitTorrent__RawServer_twisted.py b/net-p2p/py-bittorrent-devel/files/patch-BitTorrent__RawServer_twisted.py index 60de146ee9ac..5802c6c50b05 100644 --- a/net-p2p/py-bittorrent-devel/files/patch-BitTorrent__RawServer_twisted.py +++ b/net-p2p/py-bittorrent-devel/files/patch-BitTorrent__RawServer_twisted.py @@ -1,6 +1,33 @@ ---- BitTorrent/RawServer_twisted.py.orig Wed Oct 12 08:56:50 2005 -+++ BitTorrent/RawServer_twisted.py Wed Oct 12 09:01:36 2005 -@@ -565,7 +565,7 @@ +--- BitTorrent/RawServer_twisted.py.orig Wed Oct 12 18:24:39 2005 ++++ BitTorrent/RawServer_twisted.py Wed Oct 12 18:24:59 2005 +@@ -465,8 +465,6 @@ + s = SocketProxy(0, filename, True, 0, 'tcp') + s.factory = Factory() + +- if s.reuse == False: +- UnimplementedWarning("You asked for reuse to be off when binding. Sorry, I can't do that.") + + listening_port = reactor.listenUNIX(s.bind, s.factory) + listening_port.listening = 1 +@@ -479,8 +477,6 @@ + s = SocketProxy(port, bind, reuse, tos, 'tcp') + s.factory = Factory() + +- if s.reuse == False: +- UnimplementedWarning("You asked for reuse to be off when binding. Sorry, I can't do that.") + + try: + listening_port = reactor.listenTCP(s.port, s.factory, interface=s.bind) +@@ -499,8 +495,6 @@ + s.connection = c + s.protocol.connection = c + +- if s.reuse == False: +- UnimplementedWarning("You asked for reuse to be off when binding. Sorry, I can't do that.") + + try: + listening_port = reactor.listenUDP(s.port, s.protocol, interface=s.bind) +@@ -565,7 +559,7 @@ bindaddr = None if do_bind: bindaddr = self.config['bind'] diff --git a/net/py-bittorrent-devel/Makefile b/net/py-bittorrent-devel/Makefile index 0f802199eae1..1d4a773d38bb 100644 --- a/net/py-bittorrent-devel/Makefile +++ b/net/py-bittorrent-devel/Makefile @@ -7,6 +7,7 @@ PORTNAME= BitTorrent PORTVERSION= 4.1.6 +PORTREVISION= 1 PORTEPOCH= 1 CATEGORIES?= net python MASTER_SITES= http://www.bittorrent.com/dl/ \ diff --git a/net/py-bittorrent-devel/files/patch-BitTorrent__RawServer_twisted.py b/net/py-bittorrent-devel/files/patch-BitTorrent__RawServer_twisted.py index 60de146ee9ac..5802c6c50b05 100644 --- a/net/py-bittorrent-devel/files/patch-BitTorrent__RawServer_twisted.py +++ b/net/py-bittorrent-devel/files/patch-BitTorrent__RawServer_twisted.py @@ -1,6 +1,33 @@ ---- BitTorrent/RawServer_twisted.py.orig Wed Oct 12 08:56:50 2005 -+++ BitTorrent/RawServer_twisted.py Wed Oct 12 09:01:36 2005 -@@ -565,7 +565,7 @@ +--- BitTorrent/RawServer_twisted.py.orig Wed Oct 12 18:24:39 2005 ++++ BitTorrent/RawServer_twisted.py Wed Oct 12 18:24:59 2005 +@@ -465,8 +465,6 @@ + s = SocketProxy(0, filename, True, 0, 'tcp') + s.factory = Factory() + +- if s.reuse == False: +- UnimplementedWarning("You asked for reuse to be off when binding. Sorry, I can't do that.") + + listening_port = reactor.listenUNIX(s.bind, s.factory) + listening_port.listening = 1 +@@ -479,8 +477,6 @@ + s = SocketProxy(port, bind, reuse, tos, 'tcp') + s.factory = Factory() + +- if s.reuse == False: +- UnimplementedWarning("You asked for reuse to be off when binding. Sorry, I can't do that.") + + try: + listening_port = reactor.listenTCP(s.port, s.factory, interface=s.bind) +@@ -499,8 +495,6 @@ + s.connection = c + s.protocol.connection = c + +- if s.reuse == False: +- UnimplementedWarning("You asked for reuse to be off when binding. Sorry, I can't do that.") + + try: + listening_port = reactor.listenUDP(s.port, s.protocol, interface=s.bind) +@@ -565,7 +559,7 @@ bindaddr = None if do_bind: bindaddr = self.config['bind'] -- cgit