rdiff-backup-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Rdiff-backup-commits] rdiff-backup CHANGELOG rdiff_backup/fs_abilitie..


From: Andrew Ferguson
Subject: [Rdiff-backup-commits] rdiff-backup CHANGELOG rdiff_backup/fs_abilitie...
Date: Wed, 12 Nov 2008 18:51:09 +0000

CVSROOT:        /sources/rdiff-backup
Module name:    rdiff-backup
Changes by:     Andrew Ferguson <owsla> 08/11/12 18:51:09

Modified files:
        .              : CHANGELOG 
        rdiff_backup   : fs_abilities.py 

Log message:
        Add warning message if pyxattr is below version 0.2.2.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/rdiff-backup/CHANGELOG?cvsroot=rdiff-backup&r1=1.318&r2=1.319
http://cvs.savannah.gnu.org/viewcvs/rdiff-backup/rdiff_backup/fs_abilities.py?cvsroot=rdiff-backup&r1=1.54&r2=1.55

Patches:
Index: CHANGELOG
===================================================================
RCS file: /sources/rdiff-backup/rdiff-backup/CHANGELOG,v
retrieving revision 1.318
retrieving revision 1.319
diff -u -b -r1.318 -r1.319
--- CHANGELOG   11 Nov 2008 22:45:53 -0000      1.318
+++ CHANGELOG   12 Nov 2008 18:51:09 -0000      1.319
@@ -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)
 

Index: rdiff_backup/fs_abilities.py
===================================================================
RCS file: /sources/rdiff-backup/rdiff-backup/rdiff_backup/fs_abilities.py,v
retrieving revision 1.54
retrieving revision 1.55
diff -u -b -r1.54 -r1.55
--- rdiff_backup/fs_abilities.py        7 Oct 2008 23:45:42 -0000       1.54
+++ rdiff_backup/fs_abilities.py        12 Nov 2008 18:51:09 -0000      1.55
@@ -364,6 +364,16 @@
                        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")




reply via email to

[Prev in Thread] Current Thread [Next in Thread]