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 1QPU16-0004RN-Kr for garchives@archives.gentoo.org; Thu, 26 May 2011 06:25:56 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E6ABE1C4F3; Thu, 26 May 2011 06:18:32 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id B85161C4F3 for ; Thu, 26 May 2011 06:18:32 +0000 (UTC) Received: from pelican.gentoo.org (unknown [66.219.59.40]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 882221B4036 for ; Thu, 26 May 2011 06:18:32 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id E57F08050B for ; Thu, 26 May 2011 06:18:31 +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: <1b98c8733b89dde89d8a33c334e441da9cb0b1d7.zmedico@gentoo> Subject: [gentoo-commits] proj/portage:2.1.9 commit in: pym/_emerge/ X-VCS-Repository: proj/portage X-VCS-Files: pym/_emerge/AsynchronousLock.py X-VCS-Directories: pym/_emerge/ X-VCS-Committer: zmedico X-VCS-Committer-Name: Zac Medico X-VCS-Revision: 1b98c8733b89dde89d8a33c334e441da9cb0b1d7 Date: Thu, 26 May 2011 06:18:31 +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: 8f7d0b7951bd0e318c3e42119218be42 commit: 1b98c8733b89dde89d8a33c334e441da9cb0b1d7 Author: Zac Medico gentoo org> AuthorDate: Wed May 18 04:00:39 2011 +0000 Commit: Zac Medico gentoo org> CommitDate: Thu May 26 03:12:35 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/portage.git;a= =3Dcommit;h=3D1b98c873 _LockProcess.unlock: assert successful returncode --- pym/_emerge/AsynchronousLock.py | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/pym/_emerge/AsynchronousLock.py b/pym/_emerge/AsynchronousLo= ck.py index 3e7600f..d117979 100644 --- a/pym/_emerge/AsynchronousLock.py +++ b/pym/_emerge/AsynchronousLock.py @@ -277,6 +277,9 @@ class _LockProcess(AbstractPollTask): raise AssertionError('not locked') if self.returncode is None: raise AssertionError('lock not acquired yet') + if self.returncode !=3D os.EX_OK: + raise AssertionError("lock process failed with returncode %s" \ + % (self.returncode,)) self._unlocked =3D True self._files['pipe_out'].write(b'\0') self._files['pipe_out'].close()