From c2f13f5539a08b8b4a9dc881226ed4632fbe24f8 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Tue, 2 Jul 2013 10:15:18 -0700 Subject: [PATCH] _copyxattr: report attribute name in error The specific attribute name is often relevant. For example, an issue with system.nfs4_acl was reported in bug #475496. --- pym/portage/util/movefile.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/pym/portage/util/movefile.py b/pym/portage/util/movefile.py index f33e67c62..c9159970d 100644 --- a/pym/portage/util/movefile.py +++ b/pym/portage/util/movefile.py @@ -87,7 +87,9 @@ if hasattr(_os, "getxattr"): except OSError: raise_exception = True if raise_exception: - raise OperationNotSupported("Filesystem containing file '%s' does not support extended attributes" % dest) + raise OperationNotSupported(_("Filesystem containing file '%s' " + "does not support extended attribute '%s'") % + (_unicode_decode(dest), _unicode_decode(attr))) else: try: import xattr @@ -111,7 +113,9 @@ else: except IOError: raise_exception = True if raise_exception: - raise OperationNotSupported("Filesystem containing file '%s' does not support extended attributes" % dest) + raise OperationNotSupported(_("Filesystem containing file '%s' " + "does not support extended attribute '%s'") % + (_unicode_decode(dest), _unicode_decode(attr))) else: _devnull = open("/dev/null", "wb") try: -- 2.26.2