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) server-digest SHA256) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 63A08158030 for ; Wed, 1 Mar 2023 08:18:47 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 94654E0718; Wed, 1 Mar 2023 08:18:46 +0000 (UTC) Received: from smtp.gentoo.org (mail.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 7440DE0718 for ; Wed, 1 Mar 2023 08:18:46 +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 3839A340CF2 for ; Wed, 1 Mar 2023 08:18:45 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 8E841865 for ; Wed, 1 Mar 2023 08:18:42 +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: <1677658707.c6d321c915a0986da8c616536d1d0fce90013b57.flow@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-text/texlive-core/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-text/texlive-core/texlive-core-2021-r6.ebuild X-VCS-Directories: app-text/texlive-core/ X-VCS-Committer: flow X-VCS-Committer-Name: Florian Schmaus X-VCS-Revision: c6d321c915a0986da8c616536d1d0fce90013b57 X-VCS-Branch: master Date: Wed, 1 Mar 2023 08:18:42 +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: 7f82b45e-a868-437d-9a40-0f46f81edbaf X-Archives-Hash: 7c243fc2c48875e0ce1a33786b8acc0b commit: c6d321c915a0986da8c616536d1d0fce90013b57 Author: Florian Schmaus gentoo org> AuthorDate: Tue Feb 28 14:49:05 2023 +0000 Commit: Florian Schmaus gentoo org> CommitDate: Wed Mar 1 08:18:27 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c6d321c9 app-text/texlive-core: only ewarn on upgrade Signed-off-by: Florian Schmaus gentoo.org> app-text/texlive-core/texlive-core-2021-r6.ebuild | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/app-text/texlive-core/texlive-core-2021-r6.ebuild b/app-text/texlive-core/texlive-core-2021-r6.ebuild index 0b463ff9a7ff..6ef89fc8bfd5 100644 --- a/app-text/texlive-core/texlive-core-2021-r6.ebuild +++ b/app-text/texlive-core/texlive-core-2021-r6.ebuild @@ -363,6 +363,24 @@ pkg_postinst() { elog "If you have configuration files in ${EPREFIX}/etc/texmf to merge," elog "please update them and run ${EPREFIX}/usr/sbin/texmf-update." elog + + local display_migration_hint=false + if [[ -n ${REPLACING_VERSIONS} ]]; then + local new_texlive_ver=$(ver_cut 1) + local replaced_version + for replaced_version in ${REPLACING_VERSIONS}; do + replaced_version=$(ver_cut 1 ${replaced_version}) + if (( replaced_version < new_texlive_version )); then + display_migration_hint=true + break + fi + done + fi + + if ! ${display_migration_hint}; then + return + fi + ewarn "If you are migrating from an older TeX distribution" ewarn "Please make sure you have read:" ewarn "https://wiki.gentoo.org/wiki/Project:TeX/Tex_Live_Migration_Guide"