Commit 4215b4db authored by owsla's avatar owsla

Allow for preservation of FinderInfo for folders and fix typo in Time.py


git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup@777 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
parent dc16c6cd
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.)
......
......@@ -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):
......
......@@ -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:
......
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