_copyxattr: ignore EOPNOTSUPP from os.listxattr()
This will fix bug #484540.
diff --git a/pym/portage/util/movefile.py b/pym/portage/util/movefile.py
index 8ce80f1..e9b01be 100644
--- a/pym/portage/util/movefile.py
+++ b/pym/portage/util/movefile.py
@@ -72,7 +72,12 @@
# Python >=3.3 and GNU/Linux
def _copyxattr(src, dest, exclude=None):
- attrs = _os.listxattr(src)
+ try:
+ attrs = _os.listxattr(src)
+ except OSError as e:
+ if e.errno != OperationNotSupported.errno:
+ raise
+ attrs = ()
if attrs:
if exclude is not None and isinstance(attrs[0], bytes):
exclude = exclude.encode(_encodings['fs'])