From 98de4c1ba726c5ea67eb53847ee7998864e8d4a2 Mon Sep 17 00:00:00 2001 From: Michał Górny Date: Thu, 1 Nov 2018 10:52:48 +0100 Subject: sys-devel/multilib-gcc-wrapper: Fix EROOT in EAPI 7 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Closes: https://bugs.gentoo.org/669852 Signed-off-by: Michał Górny --- sys-devel/multilib-gcc-wrapper/multilib-gcc-wrapper-0-r2.ebuild | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys-devel/multilib-gcc-wrapper') diff --git a/sys-devel/multilib-gcc-wrapper/multilib-gcc-wrapper-0-r2.ebuild b/sys-devel/multilib-gcc-wrapper/multilib-gcc-wrapper-0-r2.ebuild index 7bd51a6797f8..369fcd4b8bd8 100644 --- a/sys-devel/multilib-gcc-wrapper/multilib-gcc-wrapper-0-r2.ebuild +++ b/sys-devel/multilib-gcc-wrapper/multilib-gcc-wrapper-0-r2.ebuild @@ -58,13 +58,13 @@ src_install() { } pkg_postinst() { - if [[ ${ROOT} == / && -f ${EPREFIX}/usr/share/eselect/modules/compiler-shadow.eselect ]] ; then + if [[ -z ${ROOT} && -f ${EPREFIX}/usr/share/eselect/modules/compiler-shadow.eselect ]] ; then eselect compiler-shadow update all fi } pkg_postrm() { - if [[ ${ROOT} == / && -f ${EPREFIX}/usr/share/eselect/modules/compiler-shadow.eselect ]] ; then + if [[ -z ${ROOT} && -f ${EPREFIX}/usr/share/eselect/modules/compiler-shadow.eselect ]] ; then eselect compiler-shadow clean all fi } -- cgit v1.2.3-65-gdbad