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 665661381F3 for ; Sun, 15 Sep 2013 09:36:35 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 0382BE0B51; Sun, 15 Sep 2013 09:36:35 +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 9EE78E0B51 for ; Sun, 15 Sep 2013 09:36:34 +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 BB56A33EB08 for ; Sun, 15 Sep 2013 09:36:33 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id 569DEE530A for ; Sun, 15 Sep 2013 09:36:32 +0000 (UTC) From: "Zac Medico" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Zac Medico" Message-ID: <1379237772.a98be6fc2e7dfbf2dfff90bcecb672beb2a0a71e.zmedico@gentoo> Subject: [gentoo-commits] proj/portage:master 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: zmedico X-VCS-Committer-Name: Zac Medico X-VCS-Revision: a98be6fc2e7dfbf2dfff90bcecb672beb2a0a71e X-VCS-Branch: master Date: Sun, 15 Sep 2013 09:36:32 +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: 3d2df737-f55d-4ae5-8885-3be54deadfe5 X-Archives-Hash: 6b6ffaff9bf497dca0c031404248c334 commit: a98be6fc2e7dfbf2dfff90bcecb672beb2a0a71e Author: Zac Medico gentoo org> AuthorDate: Sun Sep 15 09:36:12 2013 +0000 Commit: Zac Medico gentoo org> CommitDate: Sun Sep 15 09:36:12 2013 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=a98be6fc _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'])