diff options
author | bescoto <bescoto@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109> | 2003-07-19 00:31:28 +0000 |
---|---|---|
committer | bescoto <bescoto@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109> | 2003-07-19 00:31:28 +0000 |
commit | bd8c21e288b4268ae59ef2ac2eb5824d4f3e2b8c (patch) | |
tree | 62f2a086fbfb9efca6e0a0f80f1ca3adf32b25ca | |
parent | 6e2cedeef8fbfd38f85faeea85bc6cbf92eff16c (diff) | |
download | rdiff-backup-bd8c21e288b4268ae59ef2ac2eb5824d4f3e2b8c.tar.gz |
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
-rw-r--r-- | rdiff-backup/rdiff_backup/Main.py | 5 |
1 files 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) |