commit:     fb825faab161d53eb2b4450990c06d0b94e6d412
Author:     Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
AuthorDate: Wed Feb  3 20:11:29 2021 +0000
Commit:     Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
CommitDate: Wed Feb  3 20:13:00 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fb825faa

net-firewall/shorewall: fix incomplete EAPI 7 migration

When ebuild was migrated to EAPI 7, a call to version_is_at_least() in
pkg_postinst wasn't migrated causing upgrade notice not to be displayed.

Reported-by: Ben Kohler <bkohler <AT> gentoo.org>
Package-Manager: Portage-3.0.14, Repoman-3.0.2
Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org>

 net-firewall/shorewall/shorewall-5.2.8.ebuild | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/net-firewall/shorewall/shorewall-5.2.8.ebuild 
b/net-firewall/shorewall/shorewall-5.2.8.ebuild
index a388cba86f3..566917fbfb3 100644
--- a/net-firewall/shorewall/shorewall-5.2.8.ebuild
+++ b/net-firewall/shorewall/shorewall-5.2.8.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2020 Gentoo Authors
+# Copyright 1999-2021 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI="7"
@@ -428,7 +428,7 @@ pkg_postinst() {
 
        local v
        for v in ${REPLACING_VERSIONS}; do
-               if ! version_is_at_least ${MY_MAJOR_RELEASE_NUMBER} ${v}; then
+               if ! ver_test ${v} -ge ${MY_MAJOR_RELEASE_NUMBER}; then
                        # This is an upgrade
 
                        elog "You are upgrading from a previous major version. 
It is highly recommended that you read"

Reply via email to