diff options
author | bescoto <bescoto@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109> | 2003-08-25 06:58:33 +0000 |
---|---|---|
committer | bescoto <bescoto@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109> | 2003-08-25 06:58:33 +0000 |
commit | 886dba8a2915252a008c4218627297d54eb1221a (patch) | |
tree | 5a9fa9e61a48985fa2c7c949d9dfbb2490f1cefb /rdiff-backup/rdiff_backup/rpath.py | |
parent | 6a48fc6c34e3d2f8fcaf791a847aebb6854557e7 (diff) | |
download | rdiff-backup-886dba8a2915252a008c4218627297d54eb1221a.tar.gz |
ACL/EA parsing fixes, use new quoting style
git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup/trunk@403 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
Diffstat (limited to 'rdiff-backup/rdiff_backup/rpath.py')
-rw-r--r-- | rdiff-backup/rdiff_backup/rpath.py | 21 |
1 files changed, 8 insertions, 13 deletions
diff --git a/rdiff-backup/rdiff_backup/rpath.py b/rdiff-backup/rdiff_backup/rpath.py index 43f14e3..c1641a5 100644 --- a/rdiff-backup/rdiff_backup/rpath.py +++ b/rdiff-backup/rdiff_backup/rpath.py @@ -1001,10 +1001,7 @@ class RPath(RORPath): def get_acl(self): """Return access control list object, setting if necessary""" try: acl = self.data['acl'] - except KeyError: - acl = eas_acls.AccessControlList(self.index) - if not self.issym(): acl.read_from_rp(self) - self.data['acl'] = acl + except KeyError: acl = self.data['acl'] = acl_get(self) return acl def write_acl(self, acl): @@ -1015,14 +1012,7 @@ class RPath(RORPath): def get_ea(self): """Return extended attributes object, setting if necessary""" try: ea = self.data['ea'] - except KeyError: - ea = eas_acls.ExtendedAttributes(self.index) - if not self.issym(): - # Don't read from symlinks because they will be - # followed. Update this when llistxattr, - # etc. available - ea.read_from_rp(self) - self.data['ea'] = ea + except KeyError: ea = self.data['ea'] = ea_get(self) return ea def write_ea(self, ea): @@ -1068,4 +1058,9 @@ class RPathFileHook: self.closing_thunk() return result -import eas_acls # Put at end to avoid regress + +# These two are overwritten by the eas_acls.py module. We can't +# import that module directory because of circular dependency +# problems. +def acl_get(rp): assert 0 +def ea_get(rp): assert 0 |