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.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 9A114158091 for ; Wed, 8 Jun 2022 22:50:49 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C35EAE0882; Wed, 8 Jun 2022 22:50:48 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id A6C5BE0882 for ; Wed, 8 Jun 2022 22:50:48 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id C146C340F86 for ; Wed, 8 Jun 2022 22:50:47 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 4C352105 for ; Wed, 8 Jun 2022 22:50:46 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1654728641.4b407d884e293e6aef7249862f3046ae235a052b.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-admin/github-backup-utils/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-admin/github-backup-utils/github-backup-utils-3.5.0.ebuild X-VCS-Directories: app-admin/github-backup-utils/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 4b407d884e293e6aef7249862f3046ae235a052b X-VCS-Branch: master Date: Wed, 8 Jun 2022 22:50:46 +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: 256f5e4d-2419-4fd9-a671-4007936923e9 X-Archives-Hash: 0bce1cfb89f5adbd558f3bd24913a2de commit: 4b407d884e293e6aef7249862f3046ae235a052b Author: Sam James gentoo org> AuthorDate: Wed Jun 8 22:49:46 2022 +0000 Commit: Sam James gentoo org> CommitDate: Wed Jun 8 22:50:41 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4b407d88 app-admin/github-backup-utils: call python-any-r1_pkg_setup conditionally As per example in the Python guide. Python is only needed for tests here, but as-is, it'll check for Python on all emerges, which is a problem if e.g. upgrading an old system, Python has partly been upgraded, but not completely yet, then the emerge will die and the system may be left in a bad state. (i.e. the pkg_setup call should match the dependency.) Signed-off-by: Sam James gentoo.org> app-admin/github-backup-utils/github-backup-utils-3.5.0.ebuild | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app-admin/github-backup-utils/github-backup-utils-3.5.0.ebuild b/app-admin/github-backup-utils/github-backup-utils-3.5.0.ebuild index fd36dcb57253..ab24755a1ddf 100644 --- a/app-admin/github-backup-utils/github-backup-utils-3.5.0.ebuild +++ b/app-admin/github-backup-utils/github-backup-utils-3.5.0.ebuild @@ -34,6 +34,10 @@ DEPEND="test? ( MY_PN="${PN/#github-/}" S="${WORKDIR}/${MY_PN}-${PV}" +pkg_setup() { + use test && python-any-r1_pkg_setup +} + src_compile() { :; }