commit:     855c59c561e00df4f4d1f32638ea970259bd9976
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Fri Apr 22 17:41:03 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri Apr 22 17:43:07 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=855c59c5

sys-boot/lilo: fix ROOT check in pkg_postinst

With EAPI 7+, ROOT and others will be blank (not /).

Signed-off-by: Sam James <sam <AT> gentoo.org>

 sys-boot/lilo/{lilo-24.2.ebuild => lilo-24.2-r1.ebuild} | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sys-boot/lilo/lilo-24.2.ebuild b/sys-boot/lilo/lilo-24.2-r1.ebuild
similarity index 98%
rename from sys-boot/lilo/lilo-24.2.ebuild
rename to sys-boot/lilo/lilo-24.2-r1.ebuild
index 9ae96a087bd0..66040236a6d6 100644
--- a/sys-boot/lilo/lilo-24.2.ebuild
+++ b/sys-boot/lilo/lilo-24.2-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2022 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI="7"
@@ -162,7 +162,7 @@ pkg_postinst() {
                        ln -snf boot-menu.b "${ROOT}/boot/boot.b"
        fi
 
-       if [ "${ROOT}" = "/" ] && use !minimal;
+       if [[ -z "${ROOT}" ]] && use !minimal;
        then
                if lilocheck
                then

Reply via email to