Gentoo Archives: gentoo-commits

From: Florian Schmaus <flow@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-text/texlive-core/
Date: Wed, 01 Mar 2023 08:18:47
Message-Id: 1677658707.c6d321c915a0986da8c616536d1d0fce90013b57.flow@gentoo
1 commit: c6d321c915a0986da8c616536d1d0fce90013b57
2 Author: Florian Schmaus <flow <AT> gentoo <DOT> org>
3 AuthorDate: Tue Feb 28 14:49:05 2023 +0000
4 Commit: Florian Schmaus <flow <AT> gentoo <DOT> org>
5 CommitDate: Wed Mar 1 08:18:27 2023 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c6d321c9
7
8 app-text/texlive-core: only ewarn on upgrade
9
10 Signed-off-by: Florian Schmaus <flow <AT> gentoo.org>
11
12 app-text/texlive-core/texlive-core-2021-r6.ebuild | 18 ++++++++++++++++++
13 1 file changed, 18 insertions(+)
14
15 diff --git a/app-text/texlive-core/texlive-core-2021-r6.ebuild b/app-text/texlive-core/texlive-core-2021-r6.ebuild
16 index 0b463ff9a7ff..6ef89fc8bfd5 100644
17 --- a/app-text/texlive-core/texlive-core-2021-r6.ebuild
18 +++ b/app-text/texlive-core/texlive-core-2021-r6.ebuild
19 @@ -363,6 +363,24 @@ pkg_postinst() {
20 elog "If you have configuration files in ${EPREFIX}/etc/texmf to merge,"
21 elog "please update them and run ${EPREFIX}/usr/sbin/texmf-update."
22 elog
23 +
24 + local display_migration_hint=false
25 + if [[ -n ${REPLACING_VERSIONS} ]]; then
26 + local new_texlive_ver=$(ver_cut 1)
27 + local replaced_version
28 + for replaced_version in ${REPLACING_VERSIONS}; do
29 + replaced_version=$(ver_cut 1 ${replaced_version})
30 + if (( replaced_version < new_texlive_version )); then
31 + display_migration_hint=true
32 + break
33 + fi
34 + done
35 + fi
36 +
37 + if ! ${display_migration_hint}; then
38 + return
39 + fi
40 +
41 ewarn "If you are migrating from an older TeX distribution"
42 ewarn "Please make sure you have read:"
43 ewarn "https://wiki.gentoo.org/wiki/Project:TeX/Tex_Live_Migration_Guide"