aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2013-09-14 17:51:07 -0700
committerZac Medico <zmedico@gentoo.org>2013-09-14 17:51:07 -0700
commit269593bc545ddb1df95985039b47b1201d1691ab (patch)
treea9321f42daa280c56a908363536ee9bbf58d7608
parentFlag -Waggressive-loop-optimizations warnings. (diff)
downloadportage-269593bc545ddb1df95985039b47b1201d1691ab.tar.gz
portage-269593bc545ddb1df95985039b47b1201d1691ab.tar.bz2
portage-269593bc545ddb1df95985039b47b1201d1691ab.zip
_copyxattr: ignore EOPNOTSUPP from xattr.list()
-rw-r--r--pym/portage/util/movefile.py8
1 files changed, 1 insertions, 7 deletions
diff --git a/pym/portage/util/movefile.py b/pym/portage/util/movefile.py
index 1f92b59b7..8ce80f1aa 100644
--- a/pym/portage/util/movefile.py
+++ b/pym/portage/util/movefile.py
@@ -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):