Commit d7520d68 authored by owsla's avatar owsla

Add warning message if pyxattr is below version 0.2.2.


git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup@958 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
parent 3b0db05f
New in v1.2.3 (????/??/??) New in v1.2.3 (????/??/??)
--------------------------- ---------------------------
Add warning message if pyxattr is below version 0.2.2. (Andrew Ferguson)
Add "Stale NFS file handle" (ESTALE) to the list of recoverable errors. Thanks Add "Stale NFS file handle" (ESTALE) to the list of recoverable errors. Thanks
to Guillaume Vachon for reporting the issue. (Andrew Ferguson) to Guillaume Vachon for reporting the issue. (Andrew Ferguson)
......
...@@ -363,6 +363,16 @@ class FSAbilities: ...@@ -363,6 +363,16 @@ class FSAbilities:
self.eas = 0 self.eas = 0
return return
try:
ver = xattr.__version__
except AttributeError:
ver = 'unknown'
if ver < '0.2.2' or ver == 'unknown':
log.Log("Warning: Your version of pyxattr (%s) has broken support "
"for extended\nattributes on symlinks. If you choose not "
"to upgrade to a more recent version,\nyou may see many "
"warning messages from listattr().\n" % (ver,), 3)
try: try:
xattr.listxattr(rp.path) xattr.listxattr(rp.path)
if write: if write:
......
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