summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorowsla <owsla@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109>2008-11-12 18:51:09 +0000
committerowsla <owsla@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109>2008-11-12 18:51:09 +0000
commit02512182c3e6eccb0b2388150b9691c4166e63d7 (patch)
treef1f6bc86fb1b64e9021d52b26bbffcee7ce1885c
parent7f3f9d5c075c8ce122ed69b51cff12dcfbdf8794 (diff)
downloadrdiff-backup-02512182c3e6eccb0b2388150b9691c4166e63d7.tar.gz
Add warning message if pyxattr is below version 0.2.2.
git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup/trunk@958 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
-rw-r--r--rdiff-backup/CHANGELOG2
-rw-r--r--rdiff-backup/rdiff_backup/fs_abilities.py10
2 files changed, 12 insertions, 0 deletions
diff --git a/rdiff-backup/CHANGELOG b/rdiff-backup/CHANGELOG
index fe94df9..3ca7fd7 100644
--- a/rdiff-backup/CHANGELOG
+++ b/rdiff-backup/CHANGELOG
@@ -1,6 +1,8 @@
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
to Guillaume Vachon for reporting the issue. (Andrew Ferguson)
diff --git a/rdiff-backup/rdiff_backup/fs_abilities.py b/rdiff-backup/rdiff_backup/fs_abilities.py
index eae41c1..73a0cb8 100644
--- a/rdiff-backup/rdiff_backup/fs_abilities.py
+++ b/rdiff-backup/rdiff_backup/fs_abilities.py
@@ -364,6 +364,16 @@ class FSAbilities:
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:
xattr.listxattr(rp.path)
if write:
xattr.setxattr(rp.path, "user.test", "test val")