Author: dmeyer
Date: Sun Oct 14 13:19:01 2007
New Revision: 2871
Log:
use tmp entry list in case of a crash
Modified:
trunk/feedmanager/src/core.py
Modified: trunk/feedmanager/src/core.py
==============================================================================
--- trunk/feedmanager/src/core.py (original)
+++ trunk/feedmanager/src/core.py Sun Oct 14 13:19:01 2007
@@ -201,7 +201,7 @@
num = self._num
allfiles = [ e[1] for e in self._entries ]
entries = self._entries
- self._entries = []
+ new_entries = []
for entry in self:
if isinstance(entry, kaa.notifier.InProgress):
@@ -254,7 +254,7 @@
if key in entry:
item[key] = entry[key]
- self._entries.append((entry['url'], filename))
+ new_entries.append((entry['url'], filename))
num -= 1
if num == 0:
break
@@ -264,7 +264,7 @@
# delete old files or remove old entries from beacon
for url, filename in entries:
- if (self._keep and self._download) or (url, filename) in
self._entries:
+ if (self._keep and self._download) or (url, filename) in
new_entries:
continue
if not filename:
# delete old entries from beacon
@@ -275,6 +275,7 @@
# delete file on disc
os.unlink(filename)
self._updating = False
+ self._entries = new_entries
yield True
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog