summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorlioux <lioux@FreeBSD.org>2005-02-27 18:14:14 +0000
committerlioux <lioux@FreeBSD.org>2005-02-27 18:14:14 +0000
commit0d13701298ba9553bf5ea8e1b3701d00dd95e73e (patch)
tree0acf7e920ec8661289ba9df579d5363a680271be /net
parentdd075aa245f79ff9ca166f02999b94cdaf4e5fce (diff)
downloadFreeBSD-ports-0d13701298ba9553bf5ea8e1b3701d00dd95e73e.zip
FreeBSD-ports-0d13701298ba9553bf5ea8e1b3701d00dd95e73e.tar.gz
Update to development version 3.9.1
Diffstat (limited to 'net')
-rw-r--r--net/py-bittorrent-devel/Makefile3
-rw-r--r--net/py-bittorrent-devel/distinfo4
-rw-r--r--net/py-bittorrent-devel/files/patch-BitTorrent::Downloader.py11
-rw-r--r--net/py-bittorrent-devel/files/patch-BitTorrent::download.py15
-rw-r--r--net/py-bittorrent-devel/files/patch-BitTorrent::zurllib.py45
5 files changed, 3 insertions, 75 deletions
diff --git a/net/py-bittorrent-devel/Makefile b/net/py-bittorrent-devel/Makefile
index c50233f..9ac03dd 100644
--- a/net/py-bittorrent-devel/Makefile
+++ b/net/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/py-bittorrent-devel/distinfo b/net/py-bittorrent-devel/distinfo
index 66797dc..ff0d3b8 100644
--- a/net/py-bittorrent-devel/distinfo
+++ b/net/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/py-bittorrent-devel/files/patch-BitTorrent::Downloader.py b/net/py-bittorrent-devel/files/patch-BitTorrent::Downloader.py
deleted file mode 100644
index ad747fe..0000000
--- a/net/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/py-bittorrent-devel/files/patch-BitTorrent::download.py b/net/py-bittorrent-devel/files/patch-BitTorrent::download.py
deleted file mode 100644
index 253d305..0000000
--- a/net/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/py-bittorrent-devel/files/patch-BitTorrent::zurllib.py b/net/py-bittorrent-devel/files/patch-BitTorrent::zurllib.py
deleted file mode 100644
index 0b6211e..0000000
--- a/net/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:
OpenPOWER on IntegriCloud