'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 <slyfox@gentoo.org>
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
-}
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
-}