[CalendarServer-changes] [8205] CalendarServer/trunk/twistedcaldav/test/util.py

source_changes at macosforge.org source_changes at macosforge.org
Fri Oct 14 23:03:26 PDT 2011


Revision: 8205
          http://trac.macosforge.org/projects/calendarserver/changeset/8205
Author:   sagen at apple.com
Date:     2011-10-14 23:03:24 -0700 (Fri, 14 Oct 2011)
Log Message:
-----------
Explicitly call getxattr to see if xattr is supported since xattr.xattr( ) doesn't raise IOError

Modified Paths:
--------------
    CalendarServer/trunk/twistedcaldav/test/util.py

Modified: CalendarServer/trunk/twistedcaldav/test/util.py
===================================================================
--- CalendarServer/trunk/twistedcaldav/test/util.py	2011-10-14 23:13:31 UTC (rev 8204)
+++ CalendarServer/trunk/twistedcaldav/test/util.py	2011-10-15 06:03:24 UTC (rev 8205)
@@ -277,6 +277,9 @@
 
                 if childStructure.has_key("@xattrs"):
                     try:
+                        # See if we have xattr support; IOError if not
+                        ignored = xattr.getxattr(childPath, "test")
+
                         xattrs = childStructure["@xattrs"]
                         for attr, value in xattrs.iteritems():
                             if isinstance(value, str):
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20111014/95582012/attachment.html>


More information about the calendarserver-changes mailing list