From 3775838ea289ba4cb7fef19ddfb61f5e8137aa8c Mon Sep 17 00:00:00 2001 From: Kent Fredric Date: Sat, 22 Apr 2017 07:05:00 +1200 Subject: [PATCH] perl-module.eclass: Fix GENTOO_DEPEND_ON_SUBSLOT handling/error Currently errors even when set to "yes" ( which is the mechanics that is implied if the option is missing ) This prematurely tells people about non-issues, and encourages them to set the wrong value. --- eclass/perl-module.eclass | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/eclass/perl-module.eclass b/eclass/perl-module.eclass index af5a0c9e3446..a012b16dce92 100644 --- a/eclass/perl-module.eclass +++ b/eclass/perl-module.eclass @@ -85,8 +85,8 @@ case ${EAPI:-0} in ;; esac - if [[ "${GENTOO_DEPEND_ON_PERL_SUBSLOT}" ]]; then - eerror "GENTOO_DEPEND_ON_PERL_SUBSLOT is banned in EAPI=6. If you don't want a slot operator" + if [[ "${GENTOO_DEPEND_ON_PERL_SUBSLOT:-yes}" != "yes" ]]; then + eerror "GENTOO_DEPEND_ON_PERL_SUBSLOT=no is banned in EAPI=6. If you don't want a slot operator" die "set GENTOO_DEPEND_ON_PERL=noslotop instead." fi -- 2.26.2