From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 82A30158041 for ; Wed, 3 Apr 2024 16:20:14 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A4D50E2A76; Wed, 3 Apr 2024 16:20:13 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 83FC5E2A76 for ; Wed, 3 Apr 2024 16:20:13 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id B7ACB343159 for ; Wed, 3 Apr 2024 16:20:12 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 01070103F for ; Wed, 3 Apr 2024 16:20:11 +0000 (UTC) From: "Florian Schmaus" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Florian Schmaus" Message-ID: <1712161203.c1639999f95c3b863b8e42cab56c91dbb3bdfb17.flow@gentoo> Subject: [gentoo-commits] proj/tex-overlay:main commit in: eclass/ X-VCS-Repository: proj/tex-overlay X-VCS-Files: eclass/texlive-module.eclass X-VCS-Directories: eclass/ X-VCS-Committer: flow X-VCS-Committer-Name: Florian Schmaus X-VCS-Revision: c1639999f95c3b863b8e42cab56c91dbb3bdfb17 X-VCS-Branch: main Date: Wed, 3 Apr 2024 16:20:11 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 8b054942-f644-47f5-8b78-8f413cb729cf X-Archives-Hash: fb8690cef11b3384fbe53356dd47b1e4 commit: c1639999f95c3b863b8e42cab56c91dbb3bdfb17 Author: Florian Schmaus gentoo org> AuthorDate: Wed Apr 3 16:19:13 2024 +0000 Commit: Florian Schmaus gentoo 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 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 }