From 6c4fd0c8cf685bc2860d5033e80d7f2271f2f8a3 Mon Sep 17 00:00:00 2001 From: owsla Date: Mon, 2 Mar 2009 17:25:54 +0000 Subject: Use the correct method to update globals git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup/branches/r1-2@1025 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109 --- rdiff-backup/CHANGELOG | 2 ++ rdiff-backup/rdiff_backup/fs_abilities.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/rdiff-backup/CHANGELOG b/rdiff-backup/CHANGELOG index 8752b56..2efe209 100644 --- a/rdiff-backup/CHANGELOG +++ b/rdiff-backup/CHANGELOG @@ -1,6 +1,8 @@ New in v1.2.7 (????/??/??) --------------------------- +Properly disable hardlinks by default on Windows. + Fix Python 2.2 compatibility. Closes Savannah bug #25529. (Andrew Ferguson) Fix typo which caused failure when checking if another rdiff-backup process is diff --git a/rdiff-backup/rdiff_backup/fs_abilities.py b/rdiff-backup/rdiff_backup/fs_abilities.py index 12e2632..cd3fbd6 100644 --- a/rdiff-backup/rdiff_backup/fs_abilities.py +++ b/rdiff-backup/rdiff_backup/fs_abilities.py @@ -605,7 +605,7 @@ def get_readonly_fsa(desc_string, rp): if os.name == 'nt' and (desc_string == 'source' or desc_string == 'rdiff-backup repository'): log.Log("Hardlinks disabled by default on Windows", 4) - Globals.set('preserve_hardlinks', 0) + SetConnections.UpdateGlobal('preserve_hardlinks', 0) return FSAbilities(desc_string).init_readonly(rp) class SetGlobals: -- cgit v1.2.1