mirror of
https://git.freebsd.org/ports.git
synced 2025-07-07 04:19:17 -04:00
- 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
15 lines
586 B
Python
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:
|