r214 - /debtorrent/trunk/DebTorrent/BT1/Storage.py
camrdale-guest at users.alioth.debian.org
camrdale-guest at users.alioth.debian.org
Fri Aug 10 03:48:45 UTC 2007
Author: camrdale-guest
Date: Fri Aug 10 03:48:45 2007
New Revision: 214
URL: http://svn.debian.org/wsvn/debtorrent/?sc=1&rev=214
Log:
Fix a bug that caused an error when downloading the same file from different torrents.
Modified:
debtorrent/trunk/DebTorrent/BT1/Storage.py
Modified: debtorrent/trunk/DebTorrent/BT1/Storage.py
URL: http://svn.debian.org/wsvn/debtorrent/debtorrent/trunk/DebTorrent/BT1/Storage.py?rev=214&op=diff
==============================================================================
--- debtorrent/trunk/DebTorrent/BT1/Storage.py (original)
+++ debtorrent/trunk/DebTorrent/BT1/Storage.py Fri Aug 10 03:48:45 2007
@@ -233,7 +233,7 @@
h.flush()
h.close()
self.mtimes[file] = getmtime(file)
- self.tops[file] = l
+ self.tops[file] = l
self.sizes[file] = length
so_far += l
@@ -410,7 +410,7 @@
assert newmtime <= oldmtime+1
assert newmtime >= oldmtime-1
except:
- logger.warning(file+' modified: '
+ logger.exception(file+' modified: '
+strftime('(%x %X)',localtime(self.mtimes[file]))
+strftime(' != (%x %X) ?',localtime(getmtime(file))))
raise IOError('modified during download')
More information about the Debtorrent-commits
mailing list