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 1QMRt0-0001B7-LW for garchives@archives.gentoo.org; Tue, 17 May 2011 21:33:05 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 7201C1C127; Tue, 17 May 2011 21:32:54 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 3CB751C127 for ; Tue, 17 May 2011 21:32:54 +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 910171B403C for ; Tue, 17 May 2011 21:32:53 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id C444780504 for ; Tue, 17 May 2011 21:32:52 +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: <927966f77a5a9b94462e9a0c23be4e7b56207f58.zmedico@gentoo> Subject: [gentoo-commits] proj/portage:master commit in: pym/_emerge/ X-VCS-Repository: proj/portage X-VCS-Files: pym/_emerge/AsynchronousTask.py X-VCS-Directories: pym/_emerge/ X-VCS-Committer: zmedico X-VCS-Committer-Name: Zac Medico X-VCS-Revision: 927966f77a5a9b94462e9a0c23be4e7b56207f58 Date: Tue, 17 May 2011 21:32:52 +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: fa0aad513223aba8c47d2a16d5486480 commit: 927966f77a5a9b94462e9a0c23be4e7b56207f58 Author: Zac Medico gentoo org> AuthorDate: Tue May 17 21:32:33 2011 +0000 Commit: Zac Medico gentoo org> CommitDate: Tue May 17 21:32:33 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/portage.git;a= =3Dcommit;h=3D927966f7 AsynchronousTask: tweak poll() logic --- pym/_emerge/AsynchronousTask.py | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/pym/_emerge/AsynchronousTask.py b/pym/_emerge/AsynchronousTa= sk.py index cac1d55..36522ca 100644 --- a/pym/_emerge/AsynchronousTask.py +++ b/pym/_emerge/AsynchronousTask.py @@ -31,10 +31,11 @@ class AsynchronousTask(SlotObject): return self.returncode is None =20 def poll(self): - self._wait_hook() if self.returncode is not None: return self.returncode - return self._poll() + self._poll() + self._wait_hook() + return self.returncode =20 def _poll(self): return self.returncode