Commit e31c9faf authored by bescoto's avatar bescoto

Mainly fix for spurious backing up because of uname/gname


git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup@492 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
parent 7255238f
...@@ -10,9 +10,9 @@ was full (reported by Erik Forsberg). ...@@ -10,9 +10,9 @@ was full (reported by Erik Forsberg).
Fixed remote quoting errors found by Daniel Drucker. Fixed remote quoting errors found by Daniel Drucker.
Fixed handling of daylight savings time. Earlier bug would cause some Fixed handling of (lack of) daylight savings time. Earlier bug would
files to be marked an hour later. Thanks to Troels Arvin and Farkas cause some files to be marked an hour later. Thanks to Troels Arvin
Levente for bug report. and Farkas Levente for bug report.
New in v0.13.3 (2003/10/14) New in v0.13.3 (2003/10/14)
......
...@@ -296,9 +296,11 @@ class RORPath: ...@@ -296,9 +296,11 @@ class RORPath:
elif key == 'acl' and not Globals.acls_active: pass elif key == 'acl' and not Globals.acls_active: pass
elif key == 'resourcefork' and not Globals.resource_forks_active: elif key == 'resourcefork' and not Globals.resource_forks_active:
pass pass
elif ((key == 'uname' or key == 'gname') and elif key == 'uname' or key == 'gname':
not other.data.has_key(key)): # here for legacy reasons - 0.12.x didn't store u/gnames
pass # legacy reasons - 0.12.x didn't store u/gnames other_name = other.data.get(key, None)
if (other_name and other_name != "None" and
other_name != self.data[key]): return None
elif (key == 'inode' and elif (key == 'inode' and
(not self.isreg() or self.getnumlinks() == 1 or (not self.isreg() or self.getnumlinks() == 1 or
not Globals.compare_inode or not Globals.compare_inode or
...@@ -307,7 +309,7 @@ class RORPath: ...@@ -307,7 +309,7 @@ class RORPath:
else: else:
try: other_val = other.data[key] try: other_val = other.data[key]
except KeyError: return None except KeyError: return None
if self.data[key] != other.data[key]: return None if self.data[key] != other_val: return None
return 1 return 1
def equal_loose(self, other): def equal_loose(self, other):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment