ports/net-p2p/py-bittorrent-devel/files/patch-BitTorrent::download.py
Mario Sergio Fujikawa Ferreira d3997bd11e o Track BitTorrent's codeville development repository
- BitTorrent/Downloader.py: change (self.active_requests vs
  self.backlog) proportion handling
- BitTorrent/download.py: add exception handling around Storage
  method call
o Bump PORTREVISION

Obtained from:	BitTorrent's codeville repository
2004-12-29 03:35:40 +00:00

15 lines
586 B
Python

--- 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: