commit:     daf6441e2216a5e163b48d08fb36bb04577eecc1
Author:     Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
AuthorDate: Thu Jul  1 07:14:24 2021 +0000
Commit:     Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
CommitDate: Thu Jul  1 08:41:10 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=daf6441e

eclass/docs.eclass: invert (B)DEPEND if condition

As suggested by Soap (Thank You!)

Makes this part more future proof, and removes the
"," that shouldn't have been there.

Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org>

 eclass/docs.eclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/eclass/docs.eclass b/eclass/docs.eclass
index f49c6aeab9d..684ab26919c 100644
--- a/eclass/docs.eclass
+++ b/eclass/docs.eclass
@@ -378,7 +378,7 @@ case ${DOCS_BUILDER} in
                ;;
 esac
 
-if [[ ${EAPI} == [7,8] ]]; then
+if [[ ${EAPI} != 6 ]]; then
        BDEPEND+=" doc? ( ${DOCS_DEPEND} )"
 else
        DEPEND+=" doc? ( ${DOCS_DEPEND} )"

Reply via email to