|
From: <st...@us...> - 2007-01-26 11:04:59
|
Revision: 298
http://safekeep.svn.sourceforge.net/safekeep/?rev=298&view=rev
Author: stelian
Date: 2007-01-26 03:04:57 -0800 (Fri, 26 Jan 2007)
Log Message:
-----------
Fix backup.log marker logic.
Modified Paths:
--------------
safekeep/trunk/safekeep
Modified: safekeep/trunk/safekeep
===================================================================
--- safekeep/trunk/safekeep 2007-01-26 04:27:04 UTC (rev 297)
+++ safekeep/trunk/safekeep 2007-01-26 11:04:57 UTC (rev 298)
@@ -54,8 +54,7 @@
if marker:
if line.startswith(marker):
marker = None
- else:
- continue
+ continue
info(line.rstrip())
finally:
fin.close()
@@ -566,6 +565,9 @@
backup_log = os.path.join(rdiff_logdir, 'backup.log')
if os.path.isfile(backup_log):
backup_marker = '=== Backup session on %s ===' % time.asctime()
+ fbm = open(backup_log, 'a')
+ fbm.write(backup_marker + '\n')
+ fbm.close()
else:
backup_marker = None
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|