r413 - in /debtorrent/trunk: DebTorrent/HTTPCache.py debian/changelog

camrdale at users.alioth.debian.org camrdale at users.alioth.debian.org
Wed Sep 9 06:01:22 UTC 2009


Author: camrdale
Date: Wed Sep  9 06:01:19 2009
New Revision: 413

URL: http://svn.debian.org/wsvn/debtorrent/?sc=1&rev=413
Log:
Fix exception when server doesn't return modified time (Closes: #515753)

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

Modified: debtorrent/trunk/DebTorrent/HTTPCache.py
URL: http://svn.debian.org/wsvn/debtorrent/debtorrent/trunk/DebTorrent/HTTPCache.py?rev=413&op=diff
==============================================================================
--- debtorrent/trunk/DebTorrent/HTTPCache.py (original)
+++ debtorrent/trunk/DebTorrent/HTTPCache.py Wed Sep  9 06:01:19 2009
@@ -606,6 +606,9 @@
         else:
             server_mtime = timegm(strptime(server_mtime_string, time_format+' %Z'))
 
+        if http_mtime_string is None:
+            return gmtime() - server_mtime
+        
         http_mtime = timegm(strptime(http_mtime_string, time_format+' %Z'))
 
         return http_mtime - server_mtime

Modified: debtorrent/trunk/debian/changelog
URL: http://svn.debian.org/wsvn/debtorrent/debtorrent/trunk/debian/changelog?rev=413&op=diff
==============================================================================
--- debtorrent/trunk/debian/changelog (original)
+++ debtorrent/trunk/debian/changelog Wed Sep  9 06:01:19 2009
@@ -2,8 +2,9 @@
 
   * Prevent symlink attack when upgrading from pre 0.1.6 (Closes: #500180)
   * Add a status verb to init.d scripts (Closes: #498606)
+  * Fix exception when server doesn't return modified time (Closes: #515753)
 
- -- Cameron Dale <camrdale at gmail.com>  Sun, 28 Sep 2008 11:49:34 -0700
+ -- Cameron Dale <camrdale at gmail.com>  Tue, 08 Sep 2009 22:55:34 -0700
 
 debtorrent (0.1.9) unstable; urgency=low
 




More information about the Debtorrent-commits mailing list