summaryrefslogtreecommitdiff
path: root/rdiff-backup/rdiff_backup
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 /rdiff-backup/rdiff_backup
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
Diffstat (limited to 'rdiff-backup/rdiff_backup')
-rw-r--r--rdiff-backup/rdiff_backup/fs_abilities.py10
1 files changed, 10 insertions, 0 deletions
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")