From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 227491381F3 for ; Wed, 18 Sep 2013 18:34:57 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 64BB7E09F9; Wed, 18 Sep 2013 18:34:56 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id BED33E09E0 for ; Wed, 18 Sep 2013 18:34:55 +0000 (UTC) Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id D047333EC9C for ; Wed, 18 Sep 2013 18:34:54 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id 847E7E545E for ; Wed, 18 Sep 2013 18:34:53 +0000 (UTC) From: "Fabian Groffen" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Fabian Groffen" Message-ID: <1379529216.40f7095d9f894400b06a08ba62b318d28465036c.grobian@gentoo> Subject: [gentoo-commits] proj/portage:prefix commit in: pym/portage/util/ X-VCS-Repository: proj/portage X-VCS-Files: pym/portage/util/movefile.py X-VCS-Directories: pym/portage/util/ X-VCS-Committer: grobian X-VCS-Committer-Name: Fabian Groffen X-VCS-Revision: 40f7095d9f894400b06a08ba62b318d28465036c X-VCS-Branch: prefix Date: Wed, 18 Sep 2013 18:34:53 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 52770837-16ff-467a-b032-a5ffb692e154 X-Archives-Hash: 69f13d049671aa50d42d69ac5203b23e commit: 40f7095d9f894400b06a08ba62b318d28465036c Author: Zac Medico gentoo org> AuthorDate: Sun Sep 15 09:36:12 2013 +0000 Commit: Fabian Groffen gentoo org> CommitDate: Wed Sep 18 18:33:36 2013 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=40f7095d _copyxattr: ignore EOPNOTSUPP from os.listxattr() This will fix bug #484540. --- pym/portage/util/movefile.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 @@ if hasattr(_os, "getxattr"): # 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'])