Gentoo Archives: gentoo-dev

From: Justin Lecher <jlec@g.o>
To: gentoo-dev@l.g.o
Cc: qa@g.o, Justin Lecher <jlec@g.o>
Subject: [gentoo-dev] [PATCH 1/9] check-reqs.eclass: Only inherit eclass once
Date: Mon, 28 Dec 2015 08:44:27
Message-Id: 1451292235-25265-2-git-send-email-jlec@gentoo.org
In Reply to: [gentoo-dev] [PATCH 0/9] Cleanup and EAPI=6 support for check-reqs.eclass by Justin Lecher
1 Signed-off-by: Justin Lecher <jlec@g.o>
2 ---
3 eclass/check-reqs.eclass | 5 +++++
4 1 file changed, 5 insertions(+)
5
6 diff --git a/eclass/check-reqs.eclass b/eclass/check-reqs.eclass
7 index d685f1f..4f74536 100644
8 --- a/eclass/check-reqs.eclass
9 +++ b/eclass/check-reqs.eclass
10 @@ -38,6 +38,8 @@
11 # These checks should probably mostly work on non-Linux, and they should
12 # probably degrade gracefully if they don't. Probably.
13
14 +if [[ ! ${_CHECK_REQS_ECLASS_} ]]; then
15 +
16 inherit eutils
17
18 # @ECLASS-VARIABLE: CHECKREQS_MEMORY
19 @@ -353,3 +355,6 @@ check-reqs_unsatisfied() {
20 # Internal, do not set yourself.
21 CHECKREQS_FAILED="true"
22 }
23 +
24 +_CHECK_REQS_ECLASS_=1
25 +fi
26 --
27 2.6.4