diff options
author | Sam James <sam@gentoo.org> | 2022-04-22 18:33:44 +0100 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2022-04-22 18:36:02 +0100 |
commit | 115bff19b509ec3474312a7c0da1f18d3307fb36 (patch) | |
tree | 364dcfc0719b017bb3a0827c805581115c8333b4 /dev-perl | |
parent | dev-perl/XML-SAX-Expat: fix ROOT check in pkg_postinst (diff) | |
download | gentoo-115bff19b509ec3474312a7c0da1f18d3307fb36.tar.gz gentoo-115bff19b509ec3474312a7c0da1f18d3307fb36.tar.bz2 gentoo-115bff19b509ec3474312a7c0da1f18d3307fb36.zip |
dev-perl/XML-SAX: fix ROOT check in pkg_postinst
Bug: https://bugs.gentoo.org/840053
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-perl')
-rw-r--r-- | dev-perl/XML-SAX/XML-SAX-1.20.0-r1.ebuild (renamed from dev-perl/XML-SAX/XML-SAX-1.20.0.ebuild) | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/dev-perl/XML-SAX/XML-SAX-1.20.0.ebuild b/dev-perl/XML-SAX/XML-SAX-1.20.0-r1.ebuild index 1a9070f92e88..b03a479f01a2 100644 --- a/dev-perl/XML-SAX/XML-SAX-1.20.0.ebuild +++ b/dev-perl/XML-SAX/XML-SAX-1.20.0-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 @@ -33,7 +33,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" |