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 5B5D7158041 for ; Tue, 2 Apr 2024 14:57:40 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 775C8E2A21; Tue, 2 Apr 2024 14:57:35 +0000 (UTC) Received: from smtp.gentoo.org (dev.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)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id DF3E5E29E7 for ; Tue, 2 Apr 2024 14:57:34 +0000 (UTC) From: Ulrich Mueller To: Florian Schmaus Cc: gentoo-dev@lists.gentoo.org, Paul Zander , tex@gentoo.org Subject: Re: [gentoo-dev] [PATCH 2/2] texlive-module.eclass: add texlive-module_update_tlpdb In-Reply-To: <20240402140738.359511-2-flow@gentoo.org> (Florian Schmaus's message of "Tue, 2 Apr 2024 16:07:38 +0200") References: <20240402140738.359511-1-flow@gentoo.org> <20240402140738.359511-2-flow@gentoo.org> Date: Tue, 02 Apr 2024 16:57:22 +0200 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-Archives-Salt: 39e1bb41-d74f-4698-b43a-c02cdfa1b177 X-Archives-Hash: 62cb7bc7de5a278d2bf3476c817a9a53 --=-=-= Content-Type: text/plain >>>>> On Tue, 02 Apr 2024, Florian Schmaus wrote: > + # 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 Sorry for having missed this before. REPLACING_VERSIONS isn't defined in pkg_postrm, so the test should be for REPLACED_BY_VERSION. Also it would be cleaner to test for the phase first, to make sure that the variable is valid in this phase: [[ ${EBUILD_PHASE} == postrm && -n ${REPLACED_BY_VERSION} ]] && return Ulrich --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQFDBAEBCAAtFiEEtDnZ1O9xIP68rzDbUYgzUIhBXi4FAmYMHNMPHHVsbUBnZW50 b28ub3JnAAoJEFGIM1CIQV4uXLwIAMjONwUAMd0u3xwiKzcBK8TVCPAs0SHb3D2A ngv1K+mneUKFhQLgn9KhPbB0D+zIxXWvSNs/ZvCzXQjg9dqwqSeymOqUH/ixeIbp BwT/JuE3MpSZwZov7B0L6tUAkTQbns5Pt+hDWtM3qf2jslzR8H0KjIiuDKZrPQ7+ lRA9TexEFm2gy0YfEv9mB4dxs1I+WFjwTVnrh2ym0IU/1blREpepjgY/ouCjR3JY SrFnwQm2nI2pom1Ep99Db3EsUwHK+9K3NA22QYWxHKPDz2JISdr2p4OKmzTvRQgV cSKsB71AMH5289gb7IUR1GT3nbdz/wxXGcb1tJW/tqoldUzYdF8= =H44J -----END PGP SIGNATURE----- --=-=-=--