Mailing List Archive

[PATCH 1/1] 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.

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} )"
Re: [PATCH 1/1] docs.eclass: invert (B)DEPEND if condition [ In reply to ]
On Thu, 2021-07-01 at 09:14 +0200, Andrew Ammerlaan wrote:
> As suggested by Soap (Thank You!)
>
> Makes this part more future proof, and removes the "," that shouldn't
> have been there.
>
> 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} )"
>

+1, go ahead and commit it