From bd8c21e288b4268ae59ef2ac2eb5824d4f3e2b8c Mon Sep 17 00:00:00 2001 From: bescoto Date: Sat, 19 Jul 2003 00:31:28 +0000 Subject: Fix negation bug in auto-setting file system parameters (thanks DH) git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup/trunk@347 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109 --- rdiff-backup/rdiff_backup/Main.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/rdiff-backup/rdiff_backup/Main.py b/rdiff-backup/rdiff_backup/Main.py index b3c09dd..4ba223d 100644 --- a/rdiff-backup/rdiff_backup/Main.py +++ b/rdiff-backup/rdiff_backup/Main.py @@ -325,7 +325,7 @@ def backup_set_fs_globals(rpin, rpout): """Use fs_abilities to set the globals that depend on filesystem""" def update_bool_global(attr, bool): """If bool is not None, update Globals.attr accordingly""" - if Globals.get(attr) is not None: + if Globals.get(attr) is None: SetConnections.UpdateGlobal(attr, bool) src_fsa = fs_abilities.FSAbilities('source').init_readonly(rpin) @@ -418,8 +418,7 @@ def restore_set_fs_globals(target): """Use fs_abilities to set the globals that depend on filesystem""" def update_bool_global(attr, bool): """If bool is not None, update Globals.attr accordingly""" - if Globals.get(attr) is not None: - SetConnections.UpdateGlobal(attr, bool) + if Globals.get(attr) is None: SetConnections.UpdateGlobal(attr, bool) target_fsa = fs_abilities.FSAbilities('destination').init_readwrite( target, 0) -- cgit v1.2.1