diff options
author | bescoto <bescoto@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109> | 2003-10-14 07:33:12 +0000 |
---|---|---|
committer | bescoto <bescoto@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109> | 2003-10-14 07:33:12 +0000 |
commit | d8cee73f6ab56d8ec6fb2b9969cefb9d9d521bb4 (patch) | |
tree | df6dc311a9e6d44376c32fdd8e9a35bf68d50ef5 /rdiff-backup/rdiff_backup/rpath.py | |
parent | 8ca3cf2a1d13e07988b6b7bc7f8c27fe6d150fb4 (diff) | |
download | rdiff-backup-d8cee73f6ab56d8ec6fb2b9969cefb9d9d521bb4.tar.gz |
Final changes for 0.13.3
git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup/trunk@474 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
Diffstat (limited to 'rdiff-backup/rdiff_backup/rpath.py')
-rw-r--r-- | rdiff-backup/rdiff_backup/rpath.py | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/rdiff-backup/rdiff_backup/rpath.py b/rdiff-backup/rdiff_backup/rpath.py index b1f3d0b..6678a3d 100644 --- a/rdiff-backup/rdiff_backup/rpath.py +++ b/rdiff-backup/rdiff_backup/rpath.py @@ -296,13 +296,18 @@ class RORPath: elif key == 'acl' and not Globals.acls_active: pass elif key == 'resourcefork' and not Globals.resource_forks_active: pass + elif ((key == 'uname' or key == 'gname') and + not other.data.has_key(key)): + pass # legacy reasons - 0.12.x didn't store u/gnames elif (key == 'inode' and (not self.isreg() or self.getnumlinks() == 1 or not Globals.compare_inode or - not Globals.preserve_hardlinks)): pass - elif (not other.data.has_key(key) or - self.data[key] != other.data[key]): - return None + not Globals.preserve_hardlinks)): + pass + else: + try: other_val = other.data[key] + except KeyError: return None + if self.data[key] != other.data[key]: return None return 1 def equal_loose(self, other): |