From c1639999f95c3b863b8e42cab56c91dbb3bdfb17 Mon Sep 17 00:00:00 2001 From: Florian Schmaus Date: Wed, 3 Apr 2024 18:19:13 +0200 Subject: texlive-module.eclass: use REPLACED_BY_VERSION instead of REPLACING_VERSIONS in postrm As pointed out by ulm, REPLACING_VERSIONS isn't defined in pkg_postrm, but REPLACED_BY_VERSION is. Signed-off-by: Florian Schmaus --- eclass/texlive-module.eclass | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/eclass/texlive-module.eclass b/eclass/texlive-module.eclass index 15346a3..a79b675 100644 --- a/eclass/texlive-module.eclass +++ b/eclass/texlive-module.eclass @@ -429,7 +429,7 @@ texlive-module_update_tlpdb() { # If we are updating this package, then there is no need to update # the tlpdb in postrm, as it will be again updated in postinst. - [[ -n ${REPLACING_VERSIONS} && ${EBUILD_PHASE} == postrm ]] && return + [[ ${EBUILD_PHASE} == postrm && -n ${REPLACED_BY_VERSION} ]] && return local tlpkg="${EROOT}"/usr/share/tlpkg local tlpobj="${tlpkg}"/tlpobj @@ -494,7 +494,7 @@ texlive-module_pkg_postinst() { # installed texmf trees. texlive-module_pkg_postrm() { - [[ -z ${REPLACING_VERSIONS} ]] && etexmf-update + [[ -z ${REPLACED_BY_VERSION} ]] && etexmf-update texlive-module_update_tlpdb } -- cgit v1.2.3-65-gdbad