Gentoo Archives: gentoo-dev

From: Andrew Ammerlaan <andrewammerlaan@g.o>
To: gentoo-dev@l.g.o
Subject: [gentoo-dev] [PATCH 1/1] docs.eclass: invert (B)DEPEND if condition
Date: Thu, 01 Jul 2021 07:14:33
Message-Id: 8038a1a5-4014-b90e-69ec-8a4dee338d7f@gentoo.org
1 As suggested by Soap (Thank You!)
2
3 Makes this part more future proof, and removes the "," that shouldn't
4 have been there.
5
6 diff --git a/eclass/docs.eclass b/eclass/docs.eclass
7 index f49c6aeab9d..684ab26919c 100644
8 --- a/eclass/docs.eclass
9 +++ b/eclass/docs.eclass
10 @@ -378,7 +378,7 @@ case ${DOCS_BUILDER} in
11 ;;
12 esac
13
14 -if [[ ${EAPI} == [7,8] ]]; then
15 +if [[ ${EAPI} != 6 ]]; then
16 BDEPEND+=" doc? ( ${DOCS_DEPEND} )"
17 else
18 DEPEND+=" doc? ( ${DOCS_DEPEND} )"

Replies