1 |
commit: c2f13f5539a08b8b4a9dc881226ed4632fbe24f8 |
2 |
Author: Zac Medico <zmedico <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Jul 2 17:15:18 2013 +0000 |
4 |
Commit: Zac Medico <zmedico <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Jul 2 17:15:18 2013 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=c2f13f55 |
7 |
|
8 |
_copyxattr: report attribute name in error |
9 |
|
10 |
The specific attribute name is often relevant. For example, an issue |
11 |
with system.nfs4_acl was reported in bug #475496. |
12 |
|
13 |
--- |
14 |
pym/portage/util/movefile.py | 8 ++++++-- |
15 |
1 file changed, 6 insertions(+), 2 deletions(-) |
16 |
|
17 |
diff --git a/pym/portage/util/movefile.py b/pym/portage/util/movefile.py |
18 |
index f33e67c..c915997 100644 |
19 |
--- a/pym/portage/util/movefile.py |
20 |
+++ b/pym/portage/util/movefile.py |
21 |
@@ -87,7 +87,9 @@ if hasattr(_os, "getxattr"): |
22 |
except OSError: |
23 |
raise_exception = True |
24 |
if raise_exception: |
25 |
- raise OperationNotSupported("Filesystem containing file '%s' does not support extended attributes" % dest) |
26 |
+ raise OperationNotSupported(_("Filesystem containing file '%s' " |
27 |
+ "does not support extended attribute '%s'") % |
28 |
+ (_unicode_decode(dest), _unicode_decode(attr))) |
29 |
else: |
30 |
try: |
31 |
import xattr |
32 |
@@ -111,7 +113,9 @@ else: |
33 |
except IOError: |
34 |
raise_exception = True |
35 |
if raise_exception: |
36 |
- raise OperationNotSupported("Filesystem containing file '%s' does not support extended attributes" % dest) |
37 |
+ raise OperationNotSupported(_("Filesystem containing file '%s' " |
38 |
+ "does not support extended attribute '%s'") % |
39 |
+ (_unicode_decode(dest), _unicode_decode(attr))) |
40 |
else: |
41 |
_devnull = open("/dev/null", "wb") |
42 |
try: |