commit:     48de9776962bd33009885e7a71da5a9a8b67c7dc
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Fri Apr 22 17:34:20 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri Apr 22 17:36:03 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=48de9776

dev-perl/XML-LibXML: fix ROOT check in pkg_postinst

Bug: https://bugs.gentoo.org/840053
Signed-off-by: Sam James <sam <AT> gentoo.org>

 .../{XML-LibXML-2.20.700.ebuild => XML-LibXML-2.20.700-r1.ebuild}     | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dev-perl/XML-LibXML/XML-LibXML-2.20.700.ebuild 
b/dev-perl/XML-LibXML/XML-LibXML-2.20.700-r1.ebuild
similarity index 96%
rename from dev-perl/XML-LibXML/XML-LibXML-2.20.700.ebuild
rename to dev-perl/XML-LibXML/XML-LibXML-2.20.700-r1.ebuild
index ebe51ebbecf4..ef2735eef3b7 100644
--- a/dev-perl/XML-LibXML/XML-LibXML-2.20.700.ebuild
+++ b/dev-perl/XML-LibXML/XML-LibXML-2.20.700-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=8
@@ -65,7 +65,7 @@ pkg_update_parser() {
        local action=$1
        local parser_module=$2
 
-       if [[ "$ROOT" = "/" ]] ; then
+       if [[ -z "${ROOT}" ]] ; then
                einfo "Update Parser: $1 $2"
                perl -MXML::SAX -e 
"XML::SAX->${action}_parser(q(${parser_module}))->save_parsers()" \
                        || ewarn "Update Parser: $1 $2 failed"

Reply via email to