From 4b407d884e293e6aef7249862f3046ae235a052b Mon Sep 17 00:00:00 2001 From: Sam James Date: Wed, 8 Jun 2022 23:49:46 +0100 Subject: 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 --- 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() { :; } -- cgit v1.2.3-65-gdbad