commit:     c1639999f95c3b863b8e42cab56c91dbb3bdfb17
Author:     Florian Schmaus <flow <AT> gentoo <DOT> org>
AuthorDate: Wed Apr  3 16:19:13 2024 +0000
Commit:     Florian Schmaus <flow <AT> gentoo <DOT> org>
CommitDate: Wed Apr  3 16:20:03 2024 +0000
URL:        https://gitweb.gentoo.org/proj/tex-overlay.git/commit/?id=c1639999

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 <flow <AT> gentoo.org>

 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
 }
 

Reply via email to