From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id E5BFA138350 for ; Sun, 22 Mar 2020 20:56:59 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 00F8EE08A5; Sun, 22 Mar 2020 20:56:59 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id D4D83E08A5 for ; Sun, 22 Mar 2020 20:56:58 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id A6BA834F75F for ; Sun, 22 Mar 2020 20:56:57 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 36F53AF for ; Sun, 22 Mar 2020 20:56:55 +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: <1584909981.79b2cda96ea63cb9e4dca2df92a1f980f03cfc1d.zmedico@gentoo> Subject: [gentoo-commits] proj/portage:master commit in: lib/_emerge/ X-VCS-Repository: proj/portage X-VCS-Files: lib/_emerge/AbstractEbuildProcess.py lib/_emerge/AsynchronousTask.py X-VCS-Directories: lib/_emerge/ X-VCS-Committer: zmedico X-VCS-Committer-Name: Zac Medico X-VCS-Revision: 79b2cda96ea63cb9e4dca2df92a1f980f03cfc1d X-VCS-Branch: master Date: Sun, 22 Mar 2020 20:56:55 +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-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 023a0c91-5771-48f5-a3c7-22443dc54906 X-Archives-Hash: 0ffceca1095cc51d08413fa5e428e417 commit: 79b2cda96ea63cb9e4dca2df92a1f980f03cfc1d Author: Zac Medico gentoo org> AuthorDate: Sun Mar 22 20:45:14 2020 +0000 Commit: Zac Medico gentoo org> CommitDate: Sun Mar 22 20:46:21 2020 +0000 URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=79b2cda9 AsynchronousTask: include self in InvalidStateError message Signed-off-by: Zac Medico gentoo.org> lib/_emerge/AbstractEbuildProcess.py | 2 +- lib/_emerge/AsynchronousTask.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/_emerge/AbstractEbuildProcess.py b/lib/_emerge/AbstractEbuildProcess.py index 45545ae15..cc1ea0f1a 100644 --- a/lib/_emerge/AbstractEbuildProcess.py +++ b/lib/_emerge/AbstractEbuildProcess.py @@ -388,7 +388,7 @@ class AbstractEbuildProcess(SpawnProcess): SpawnProcess._async_wait(self) elif self._build_dir_unlock is None: if self.returncode is None: - raise asyncio.InvalidStateError('Result is not ready.') + raise asyncio.InvalidStateError('Result is not ready for %s' % (self,)) self._async_unlock_builddir(returncode=self.returncode) def _async_unlock_builddir(self, returncode=None): diff --git a/lib/_emerge/AsynchronousTask.py b/lib/_emerge/AsynchronousTask.py index ec5497b69..aaab7433a 100644 --- a/lib/_emerge/AsynchronousTask.py +++ b/lib/_emerge/AsynchronousTask.py @@ -102,7 +102,7 @@ class AsynchronousTask(SlotObject): """ if self.returncode is None: if self.scheduler.is_running(): - raise asyncio.InvalidStateError('Result is not ready.') + raise asyncio.InvalidStateError('Result is not ready for %s' % (self,)) self.scheduler.run_until_complete(self.async_wait()) self._wait_hook() return self.returncode