Sophie

Sophie

distrib > Fedora > 13 > i386 > media > updates-src > by-pkgid > c342d93787e459fc8c100c58c1f02d45 > files > 1

holland-1.0.6-3.fc13.src.rpm

Resolves https://bugs.launchpad.net/holland-backup/+bug/706997

--- holland-1.0.6/holland/commands/backup.py.orig	2011-01-12 13:27:16.000000000 -0600
+++ holland-1.0.6/holland/commands/backup.py	2011-01-24 11:41:28.454480635 -0600
@@ -138,6 +138,8 @@
                         "purge all backups which is probably not intended. "
                         "Setting backups-to-keep to 1")
             retention_count = 1
+        if event == 'pre-backup':
+            retention_count += 1
         self.purge_backupset(backupset, retention_count)
         backupset.update_symlinks()
 
--- holland-1.0.6/holland/core/backup/base.py.orig	2011-01-12 13:27:16.000000000 -0600
+++ holland-1.0.6/holland/core/backup/base.py	2011-01-24 11:42:43.303977728 -0600
@@ -113,6 +113,7 @@
                              dry_run)
 
         spool_entry.config['holland:backup']['start-time'] = time.time()
+        spool_entry.flush()
         self.apply_cb('pre-backup', spool_entry)
 
         try: