Gentoo Archives: gentoo-commits

From: Thomas Deutschmann <whissi@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-fs/lvm2/
Date: Mon, 24 Aug 2020 12:36:50
Message-Id: 1598272601.546650c382145559cb3e3d145010a7e856a5e5f1.whissi@gentoo
1 commit: 546650c382145559cb3e3d145010a7e856a5e5f1
2 Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
3 AuthorDate: Mon Aug 24 12:36:13 2020 +0000
4 Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
5 CommitDate: Mon Aug 24 12:36:41 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=546650c3
7
8 sys-fs/lvm2: show some ewarns in pkg_postinst only once
9
10 Package-Manager: Portage-3.0.4, Repoman-3.0.1
11 Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org>
12
13 sys-fs/lvm2/lvm2-2.02.187-r2.ebuild | 13 ++++++++-----
14 sys-fs/lvm2/lvm2-2.03.10.ebuild | 10 ++++++++--
15 2 files changed, 16 insertions(+), 7 deletions(-)
16
17 diff --git a/sys-fs/lvm2/lvm2-2.02.187-r2.ebuild b/sys-fs/lvm2/lvm2-2.02.187-r2.ebuild
18 index 3111a305fc4..2bc6f354e53 100644
19 --- a/sys-fs/lvm2/lvm2-2.02.187-r2.ebuild
20 +++ b/sys-fs/lvm2/lvm2-2.02.187-r2.ebuild
21 @@ -266,11 +266,14 @@ src_install() {
22 }
23
24 pkg_postinst() {
25 - ewarn "Make sure the \"lvm\" init script is in the runlevels:"
26 - ewarn "# rc-update add lvm boot"
27 - ewarn
28 - ewarn "Make sure to enable lvmetad in /etc/lvm/lvm.conf if you want"
29 - ewarn "to enable lvm autoactivation and metadata caching."
30 + if [[ -z "${REPLACING_VERSIONS}" ]]; then
31 + # This is a new installation
32 + ewarn "Make sure the \"lvm\" init script is in the runlevels:"
33 + ewarn "# rc-update add lvm boot"
34 + ewarn
35 + ewarn "Make sure to enable lvmetad in /etc/lvm/lvm.conf if you want"
36 + ewarn "to enable lvm autoactivation and metadata caching."
37 + fi
38
39 if use udev && [[ -d /run ]] ; then
40 local permission_run_expected="drwxr-xr-x"
41
42 diff --git a/sys-fs/lvm2/lvm2-2.03.10.ebuild b/sys-fs/lvm2/lvm2-2.03.10.ebuild
43 index 66bf4be80bc..c1a7dbc3b20 100644
44 --- a/sys-fs/lvm2/lvm2-2.03.10.ebuild
45 +++ b/sys-fs/lvm2/lvm2-2.03.10.ebuild
46 @@ -253,8 +253,14 @@ src_install() {
47 }
48
49 pkg_postinst() {
50 - ewarn "Make sure the \"lvm\" init script is in the runlevels:"
51 - ewarn "# rc-update add lvm boot"
52 + if [[ -z "${REPLACING_VERSIONS}" ]]; then
53 + # This is a new installation
54 + ewarn "Make sure the \"lvm\" init script is in the runlevels:"
55 + ewarn "# rc-update add lvm boot"
56 + ewarn
57 + ewarn "Make sure to enable lvmetad in /etc/lvm/lvm.conf if you want"
58 + ewarn "to enable lvm autoactivation and metadata caching."
59 + fi
60
61 if use udev && [[ -d /run ]] ; then
62 local permission_run_expected="drwxr-xr-x"