summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorKent Fredric <kentnl@gentoo.org>2017-04-22 07:05:00 +1200
committerKent Fredric <kentnl@gentoo.org>2017-04-22 09:31:01 +1200
commit3775838ea289ba4cb7fef19ddfb61f5e8137aa8c (patch)
tree14dbaa1b0e9249aed4369eaf030dd7a43e54af11 /eclass
parentperl-functions.eclass: add perl_domodule (diff)
downloadgentoo-3775838ea289ba4cb7fef19ddfb61f5e8137aa8c.tar.gz
gentoo-3775838ea289ba4cb7fef19ddfb61f5e8137aa8c.tar.bz2
gentoo-3775838ea289ba4cb7fef19ddfb61f5e8137aa8c.zip
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.
Diffstat (limited to 'eclass')
-rw-r--r--eclass/perl-module.eclass4
1 files 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