commit: 4b407d884e293e6aef7249862f3046ae235a052b
Author: Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Wed Jun 8 22:49:46 2022 +0000
Commit: Sam James <sam <AT> gentoo <DOT> 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 <sam <AT> 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() {
:;
}