summaryrefslogtreecommitdiff
path: root/net-p2p
diff options
context:
space:
mode:
authorMario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>2005-02-27 18:14:14 +0000
committerMario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>2005-02-27 18:14:14 +0000
commit6ac5448407a1a67cb15b877aa8813e0d1ae8ab25 (patch)
treea47a906321001eb6d6f78c14f5bbdd794deb274c /net-p2p
parent1ceb4a8dcc8e0330626727b8ff2938e7c4134aad (diff)
downloadfreebsd-ports-6ac5448407a1a67cb15b877aa8813e0d1ae8ab25.zip
Update to development version 3.9.1
Diffstat (limited to 'net-p2p')
-rw-r--r--net-p2p/py-bittorrent-devel/Makefile3
-rw-r--r--net-p2p/py-bittorrent-devel/distinfo4
-rw-r--r--net-p2p/py-bittorrent-devel/files/patch-BitTorrent::Downloader.py11
-rw-r--r--net-p2p/py-bittorrent-devel/files/patch-BitTorrent::download.py15
-rw-r--r--net-p2p/py-bittorrent-devel/files/patch-BitTorrent::zurllib.py45
5 files changed, 3 insertions, 75 deletions
diff --git a/net-p2p/py-bittorrent-devel/Makefile b/net-p2p/py-bittorrent-devel/Makefile
index c50233f19196..9ac03dd1b737 100644
--- a/net-p2p/py-bittorrent-devel/Makefile
+++ b/net-p2p/py-bittorrent-devel/Makefile
@@ -6,8 +6,7 @@
#
PORTNAME= BitTorrent
-PORTVERSION= 3.9.0
-PORTREVISION= 4
+PORTVERSION= 3.9.1
PORTEPOCH= 1
CATEGORIES?= net python
MASTER_SITES= http://www.bittorrent.com/
diff --git a/net-p2p/py-bittorrent-devel/distinfo b/net-p2p/py-bittorrent-devel/distinfo
index 66797dc00ff6..ff0d3b85e94b 100644
--- a/net-p2p/py-bittorrent-devel/distinfo
+++ b/net-p2p/py-bittorrent-devel/distinfo
@@ -1,2 +1,2 @@
-MD5 (BitTorrent-3.9.0.tar.gz) = 749d676687accf62f963ee395cc510ff
-SIZE (BitTorrent-3.9.0.tar.gz) = 136383
+MD5 (BitTorrent-3.9.1.tar.gz) = 806ad575397ec55b12b65fdd66e4fb3b
+SIZE (BitTorrent-3.9.1.tar.gz) = 145808
diff --git a/net-p2p/py-bittorrent-devel/files/patch-BitTorrent::Downloader.py b/net-p2p/py-bittorrent-devel/files/patch-BitTorrent::Downloader.py
deleted file mode 100644
index ad747fe9a9e6..000000000000
--- a/net-p2p/py-bittorrent-devel/files/patch-BitTorrent::Downloader.py
+++ /dev/null
@@ -1,11 +0,0 @@
---- BitTorrent.orig/Downloader.py Mon Dec 20 20:39:14 2004
-+++ BitTorrent/Downloader.py Wed Dec 29 01:13:08 2004
-@@ -205,7 +205,7 @@
- self.connection.send_interested()
- self.example_interest = interest
- self.downloader.picker.requested(interest, self.have.numfalse == 0)
-- while len(self.active_requests) < self.backlog * 2:
-+ while len(self.active_requests) < (self.backlog-2) * 5 + 2:
- begin, length = self.downloader.storage.new_request(interest)
- self.active_requests.append((interest, begin, length))
- self.connection.send_request(interest, begin, length)
diff --git a/net-p2p/py-bittorrent-devel/files/patch-BitTorrent::download.py b/net-p2p/py-bittorrent-devel/files/patch-BitTorrent::download.py
deleted file mode 100644
index 253d305809a4..000000000000
--- a/net-p2p/py-bittorrent-devel/files/patch-BitTorrent::download.py
+++ /dev/null
@@ -1,15 +0,0 @@
---- BitTorrent.orig/download.py Mon Dec 20 20:39:15 2004
-+++ BitTorrent/download.py Wed Dec 29 01:13:08 2004
-@@ -144,7 +144,11 @@
- if filelist:
- return None
- return 1
-- s = Storage(None, None, zip(myfiles, metainfo.sizes), check_only=True)
-+ try:
-+ s = Storage(None, None, zip(myfiles, metainfo.sizes),
-+ check_only=True)
-+ except:
-+ return None
- filename = os.path.join(config['data_dir'], 'resume',
- infohash.encode('hex'))
- try:
diff --git a/net-p2p/py-bittorrent-devel/files/patch-BitTorrent::zurllib.py b/net-p2p/py-bittorrent-devel/files/patch-BitTorrent::zurllib.py
deleted file mode 100644
index 0b6211e87d94..000000000000
--- a/net-p2p/py-bittorrent-devel/files/patch-BitTorrent::zurllib.py
+++ /dev/null
@@ -1,45 +0,0 @@
---- BitTorrent/zurllib.py.orig Wed Jan 5 20:41:27 2005
-+++ BitTorrent/zurllib.py Wed Jan 5 20:41:50 2005
-@@ -10,7 +10,7 @@
-
- # Written by John Hoffman
-
--from httplib import HTTPConnection
-+from httplib import HTTPConnection, HTTPException
- from urlparse import urlparse
- import socket
- from gzip import GzipFile
-@@ -20,6 +20,15 @@
-
- MAX_REDIRECTS = 10
-
-+class btHTTPcon(HTTPConnection): # attempt to add automatic connection timeout
-+ def connect(self):
-+ HTTPConnection.connect(self)
-+ try:
-+ self.sock.settimeout(30)
-+ except:
-+ pass
-+
-+
- class urlopen:
- def __init__(self, url):
- self.tries = 0
-@@ -39,11 +48,14 @@
- if query:
- url += '?'+query
- # if fragment:
-- self.connection = HTTPConnection(netloc)
-- self.connection.request('GET', url, None,
-+ try:
-+ self.connection = btHTTPcon(netloc)
-+ self.connection.request('GET', url, None,
- { 'User-Agent': 'BitTorrent/' + version,
- 'Accept-Encoding': 'gzip' } )
-- self.response = self.connection.getresponse()
-+ self.response = self.connection.getresponse()
-+ except HTTPException, e:
-+ raise IOError, ('http error', str(e))
- status = self.response.status
- if status in (301,302):
- try: