summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Schmaus <flow@gentoo.org>2024-04-03 18:19:13 +0200
committerFlorian Schmaus <flow@gentoo.org>2024-04-03 18:20:03 +0200
commitc1639999f95c3b863b8e42cab56c91dbb3bdfb17 (patch)
tree34fae031f4add3916410d78370b85146a0e7a9c1
parenttexlive-module.eclass: only invoke etexmf-update if not installing other version (diff)
downloadtex-overlay-c1639999f95c3b863b8e42cab56c91dbb3bdfb17.tar.gz
tex-overlay-c1639999f95c3b863b8e42cab56c91dbb3bdfb17.tar.bz2
tex-overlay-c1639999f95c3b863b8e42cab56c91dbb3bdfb17.zip
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@gentoo.org>
-rw-r--r--eclass/texlive-module.eclass4
1 files 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
}