_copyxattr: ignore EOPNOTSUPP from xattr.list()
authorZac Medico <zmedico@gentoo.org>
Sun, 15 Sep 2013 00:51:07 +0000 (17:51 -0700)
committerZac Medico <zmedico@gentoo.org>
Sun, 15 Sep 2013 00:51:07 +0000 (17:51 -0700)
pym/portage/util/movefile.py

index 1f92b59b7251ec3416f1c3febb1563fddf21821b..8ce80f1aa005c7877af9c1f1ea54d358b4bea793 100644 (file)
@@ -100,16 +100,10 @@ else:
 
                        try:
                                attrs = xattr.list(src)
-                               raise_exception = False
                        except IOError as e:
-                               raise_exception = True
                                if e.errno != OperationNotSupported.errno:
                                        raise
-                       if raise_exception:
-                               raise OperationNotSupported(
-                                       _("Filesystem containing file '%s' "
-                                       "does not support listing of extended attributes") %
-                                       (_unicode_decode(src),))
+                               attrs = ()
 
                        if attrs:
                                if exclude is not None and isinstance(attrs[0], bytes):