1 |
commit: d2bd0ad359f6b217b1e8c1da7956eb54addfa355 |
2 |
Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue May 5 21:46:02 2020 +0000 |
4 |
Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue May 5 21:46:13 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d2bd0ad3 |
7 |
|
8 |
sys-cluster/corosync: drop invalid version check, bug #705276 |
9 |
|
10 |
'if [[ ${REPLACING_VERSIONS} < 2.0 ]]; then' uses lexicographical |
11 |
version compare. That should be ver_cmp version compare or similar. |
12 |
|
13 |
As it's a guard against non-existent version let's just drop the ewarn. |
14 |
|
15 |
Closes: https://bugs.gentoo.org/705276 |
16 |
Package-Manager: Portage-2.3.99, Repoman-2.3.22 |
17 |
Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org> |
18 |
|
19 |
sys-cluster/corosync/corosync-2.3.5.ebuild | 11 ----------- |
20 |
sys-cluster/corosync/corosync-2.4.2.ebuild | 11 ----------- |
21 |
2 files changed, 22 deletions(-) |
22 |
|
23 |
diff --git a/sys-cluster/corosync/corosync-2.3.5.ebuild b/sys-cluster/corosync/corosync-2.3.5.ebuild |
24 |
index 3e4bf6a0f56..3485dedb6bb 100644 |
25 |
--- a/sys-cluster/corosync/corosync-2.3.5.ebuild |
26 |
+++ b/sys-cluster/corosync/corosync-2.3.5.ebuild |
27 |
@@ -73,14 +73,3 @@ src_install() { |
28 |
use static-libs || rm -rf "${D}"/usr/$(get_libdir)/*.{,l}a || die |
29 |
|
30 |
} |
31 |
- |
32 |
-pkg_postinst() { |
33 |
- if [[ ${REPLACING_VERSIONS} < 2.0 ]]; then |
34 |
- ewarn "!! IMPORTANT !!" |
35 |
- ewarn " " |
36 |
- ewarn "Migrating from a previous version of corosync can be dangerous !" |
37 |
- ewarn " " |
38 |
- ewarn "Make sure you backup your cluster configuration before proceeding" |
39 |
- ewarn " " |
40 |
- fi |
41 |
-} |
42 |
|
43 |
diff --git a/sys-cluster/corosync/corosync-2.4.2.ebuild b/sys-cluster/corosync/corosync-2.4.2.ebuild |
44 |
index 49840bb0216..bdea670c8da 100644 |
45 |
--- a/sys-cluster/corosync/corosync-2.4.2.ebuild |
46 |
+++ b/sys-cluster/corosync/corosync-2.4.2.ebuild |
47 |
@@ -69,14 +69,3 @@ src_install() { |
48 |
use static-libs || rm -rf "${D}"/usr/$(get_libdir)/*.{,l}a || die |
49 |
|
50 |
} |
51 |
- |
52 |
-pkg_postinst() { |
53 |
- if [[ ${REPLACING_VERSIONS} < 2.0 ]]; then |
54 |
- ewarn "!! IMPORTANT !!" |
55 |
- ewarn " " |
56 |
- ewarn "Migrating from a previous version of corosync can be dangerous !" |
57 |
- ewarn " " |
58 |
- ewarn "Make sure you backup your cluster configuration before proceeding" |
59 |
- ewarn " " |
60 |
- fi |
61 |
-} |