r399 - in /debtorrent/trunk: DebTorrent/download_bt1.py debian/changelog

camrdale-guest at users.alioth.debian.org camrdale-guest at users.alioth.debian.org
Sat Jul 5 20:23:17 UTC 2008


Author: camrdale-guest
Date: Sat Jul  5 20:23:16 2008
New Revision: 399

URL: http://svn.debian.org/wsvn/debtorrent/?sc=1&rev=399
Log:
Fix download/upload stats are correct after restarting torrents,
thanks to Steve Cotton for the fix (Closes: #487829)

Modified:
    debtorrent/trunk/DebTorrent/download_bt1.py
    debtorrent/trunk/debian/changelog

Modified: debtorrent/trunk/DebTorrent/download_bt1.py
URL: http://svn.debian.org/wsvn/debtorrent/debtorrent/trunk/DebTorrent/download_bt1.py?rev=399&op=diff
==============================================================================
--- debtorrent/trunk/DebTorrent/download_bt1.py (original)
+++ debtorrent/trunk/DebTorrent/download_bt1.py Sat Jul  5 20:23:16 2008
@@ -1308,11 +1308,9 @@
         return self.encoder
 
 
-    def shutdown(self, torrentdata = {}):
+    def shutdown(self):
         """Shutdown the running download.
         
-        @type torrentdata: C{dictionary}
-        @param torrentdata: any data that needs to be saved (pickled)
         @rtype: C{boolean}
         @return: False if a failure or exception occurred
         
@@ -1324,6 +1322,7 @@
             self.storage.close()
             self.rerequest_stopped()
         if self.fileselector and self.started:
+            torrentdata = {}
             torrentdata['version'] = 1
             torrentdata['stats'] = {'upload': self.upmeasure.get_total(),
                                     'download': self.downmeasure.get_total()}

Modified: debtorrent/trunk/debian/changelog
URL: http://svn.debian.org/wsvn/debtorrent/debtorrent/trunk/debian/changelog?rev=399&op=diff
==============================================================================
--- debtorrent/trunk/debian/changelog (original)
+++ debtorrent/trunk/debian/changelog Sat Jul  5 20:23:16 2008
@@ -1,3 +1,10 @@
+debtorrent (0.1.9) unstable; urgency=low
+
+  * Fix download/upload stats are correct after restarting torrents,
+    thanks to Steve Cotton for the fix (Closes: #487829)
+
+ -- Cameron Dale <camrdale at gmail.com>  Sat, 05 Jul 2008 13:22:29 -0700
+
 debtorrent (0.1.8) unstable; urgency=low
 
   * Fix: stopping long-lived torrents will not prevent new torrents from




More information about the Debtorrent-commits mailing list