commit:     3775838ea289ba4cb7fef19ddfb61f5e8137aa8c
Author:     Kent Fredric <kentnl <AT> gentoo <DOT> org>
AuthorDate: Fri Apr 21 19:05:00 2017 +0000
Commit:     Kent Fredric <kentnl <AT> gentoo <DOT> org>
CommitDate: Fri Apr 21 21:31:01 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3775838e

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 af5a0c9e344..a012b16dce9 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
 

Reply via email to