diff options
author | owsla <owsla@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109> | 2007-01-25 03:10:44 +0000 |
---|---|---|
committer | owsla <owsla@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109> | 2007-01-25 03:10:44 +0000 |
commit | 7dc173e204385896bd121eb4c163d3fbf78dacae (patch) | |
tree | ac5c128e919251c714ec1273a3fe92e92b1d48d4 /rdiff-backup | |
parent | f1c6e71893149578944f6e117edeb82dc753bd41 (diff) | |
download | rdiff-backup-7dc173e204385896bd121eb4c163d3fbf78dacae.tar.gz |
Allow for preservation of FinderInfo for folders and fix typo in Time.py
git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup/trunk@777 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
Diffstat (limited to 'rdiff-backup')
-rw-r--r-- | rdiff-backup/CHANGELOG | 3 | ||||
-rw-r--r-- | rdiff-backup/rdiff_backup/Time.py | 2 | ||||
-rw-r--r-- | rdiff-backup/rdiff_backup/eas_acls.py | 5 |
3 files changed, 7 insertions, 3 deletions
diff --git a/rdiff-backup/CHANGELOG b/rdiff-backup/CHANGELOG index d791471..3a99e4c 100644 --- a/rdiff-backup/CHANGELOG +++ b/rdiff-backup/CHANGELOG @@ -1,6 +1,9 @@ New in v1.1.8 (????/??/??) -------------------------- +Allow for preservation of FinderInfo for folders and fix typo +in Time.py. (Patch from Andrew Ferguson.) + Test for symlink permissions support to avoid unncessary syscalls on platforms that don't support them. (Patch from Andrew Ferguson.) diff --git a/rdiff-backup/rdiff_backup/Time.py b/rdiff-backup/rdiff_backup/Time.py index 7885332..377f0b7 100644 --- a/rdiff-backup/rdiff_backup/Time.py +++ b/rdiff-backup/rdiff_backup/Time.py @@ -193,7 +193,7 @@ def time_from_session(session_num, rp = None): .get_increment_times() session_times.sort() if len(session_times) <= session_num: - return session_times[0] # Use oldest if two few backups + return session_times[0] # Use oldest if too few backups return session_times[-session_num-1] def genstrtotime(timestr, curtime = None, rp = None): diff --git a/rdiff-backup/rdiff_backup/eas_acls.py b/rdiff-backup/rdiff_backup/eas_acls.py index b392d32..37694b5 100644 --- a/rdiff-backup/rdiff_backup/eas_acls.py +++ b/rdiff-backup/rdiff_backup/eas_acls.py @@ -67,8 +67,9 @@ class ExtendedAttributes: if attr.startswith('system.'): # Do not preserve system extended attributes continue - if attr == 'com.apple.FinderInfo' or attr == 'com.apple.ResourceFork': - # FinderInfo and Resource Fork handled elsewhere + if not rp.isdir() and attr == 'com.apple.FinderInfo' or attr == 'com.apple.ResourceFork': + # FinderInfo and Resource Fork handled elsewhere, except + # for directories continue try: self.attr_dict[attr] = rp.conn.xattr.getxattr(rp.path, attr) except IOError, exc: |