From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1RFdVK-0006GX-Jn for garchives@archives.gentoo.org; Mon, 17 Oct 2011 03:04:43 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B3C5F21C183; Mon, 17 Oct 2011 03:04:30 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 877CF21C1A4 for ; Mon, 17 Oct 2011 03:04:30 +0000 (UTC) Received: from pelican.gentoo.org (unknown [66.219.59.40]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id CA2A91B400F for ; Mon, 17 Oct 2011 03:04:29 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id 278878003C for ; Mon, 17 Oct 2011 03:04:29 +0000 (UTC) From: "Zac Medico" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Zac Medico" Message-ID: <5e2982d998ac5683612de4a776f92a0887a8839d.zmedico@gentoo> Subject: [gentoo-commits] proj/portage:master commit in: pym/portage/ X-VCS-Repository: proj/portage X-VCS-Files: pym/portage/checksum.py X-VCS-Directories: pym/portage/ X-VCS-Committer: zmedico X-VCS-Committer-Name: Zac Medico X-VCS-Revision: 5e2982d998ac5683612de4a776f92a0887a8839d Date: Mon, 17 Oct 2011 03:04:29 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: X-Archives-Hash: 1e89a6eaae8aafe52c8da15806d23658 commit: 5e2982d998ac5683612de4a776f92a0887a8839d Author: Zac Medico gentoo org> AuthorDate: Mon Oct 17 03:03:25 2011 +0000 Commit: Zac Medico gentoo org> CommitDate: Mon Oct 17 03:03:25 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/portage.git;a= =3Dcommit;h=3D5e2982d9 perform_checksum: OSerror to PermissionDenied --- pym/portage/checksum.py | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/pym/portage/checksum.py b/pym/portage/checksum.py index 9f3d81c..e0bff2a 100644 --- a/pym/portage/checksum.py +++ b/pym/portage/checksum.py @@ -284,8 +284,10 @@ def perform_checksum(filename, hashname=3D"MD5", cal= c_prelink=3D0): " hash function not available (needs dev-python/pycrypto)") myhash, mysize =3D hashfunc_map[hashname](myfilename) except (OSError, IOError) as e: - if e.errno =3D=3D errno.ENOENT: + if e.errno in (errno.ENOENT, errno.ESTALE): raise portage.exception.FileNotFound(myfilename) + elif e.errno =3D=3D portage.exception.PermissionDenied.errno: + raise portage.exception.PermissionDenied(myfilename) raise return myhash, mysize finally: