From d2bd0ad359f6b217b1e8c1da7956eb54addfa355 Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Tue, 5 May 2020 22:46:02 +0100 Subject: [PATCH] sys-cluster/corosync: drop invalid version check, bug #705276 'if [[ ${REPLACING_VERSIONS} < 2.0 ]]; then' uses lexicographical version compare. That should be ver_cmp version compare or similar. As it's a guard against non-existent version let's just drop the ewarn. Closes: https://bugs.gentoo.org/705276 Package-Manager: Portage-2.3.99, Repoman-2.3.22 Signed-off-by: Sergei Trofimovich --- sys-cluster/corosync/corosync-2.3.5.ebuild | 11 ----------- sys-cluster/corosync/corosync-2.4.2.ebuild | 11 ----------- 2 files changed, 22 deletions(-) diff --git a/sys-cluster/corosync/corosync-2.3.5.ebuild b/sys-cluster/corosync/corosync-2.3.5.ebuild index 3e4bf6a0f565..3485dedb6bb1 100644 --- a/sys-cluster/corosync/corosync-2.3.5.ebuild +++ b/sys-cluster/corosync/corosync-2.3.5.ebuild @@ -73,14 +73,3 @@ src_install() { use static-libs || rm -rf "${D}"/usr/$(get_libdir)/*.{,l}a || die } - -pkg_postinst() { - if [[ ${REPLACING_VERSIONS} < 2.0 ]]; then - ewarn "!! IMPORTANT !!" - ewarn " " - ewarn "Migrating from a previous version of corosync can be dangerous !" - ewarn " " - ewarn "Make sure you backup your cluster configuration before proceeding" - ewarn " " - fi -} diff --git a/sys-cluster/corosync/corosync-2.4.2.ebuild b/sys-cluster/corosync/corosync-2.4.2.ebuild index 49840bb0216f..bdea670c8da2 100644 --- a/sys-cluster/corosync/corosync-2.4.2.ebuild +++ b/sys-cluster/corosync/corosync-2.4.2.ebuild @@ -69,14 +69,3 @@ src_install() { use static-libs || rm -rf "${D}"/usr/$(get_libdir)/*.{,l}a || die } - -pkg_postinst() { - if [[ ${REPLACING_VERSIONS} < 2.0 ]]; then - ewarn "!! IMPORTANT !!" - ewarn " " - ewarn "Migrating from a previous version of corosync can be dangerous !" - ewarn " " - ewarn "Make sure you backup your cluster configuration before proceeding" - ewarn " " - fi -} -- 2.26.2