commit:     18d234f5b2c6c6b3e1e75dc7e74c4752d3301075
Author:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Fri Feb 14 14:12:17 2025 +0000
Commit:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Sat Feb 15 15:51:31 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=18d234f5

sys-process/fcron: Port to ver_replacing

Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org>

 sys-process/fcron/fcron-3.3.3.ebuild | 29 ++++++++++-------------------
 1 file changed, 10 insertions(+), 19 deletions(-)

diff --git a/sys-process/fcron/fcron-3.3.3.ebuild 
b/sys-process/fcron/fcron-3.3.3.ebuild
index c9db91dc9ba3..9b4c34d2e31e 100644
--- a/sys-process/fcron/fcron-3.3.3.ebuild
+++ b/sys-process/fcron/fcron-3.3.3.ebuild
@@ -5,7 +5,7 @@ EAPI=8
 
 WANT_AUTOMAKE="none"
 
-inherit autotools cron flag-o-matic pam systemd user-info
+inherit autotools cron eapi9-ver flag-o-matic pam systemd user-info
 
 MY_PV="${PV/_beta/}"
 MY_P="${PN}-${MY_PV}"
@@ -192,24 +192,15 @@ pkg_postinst() {
                elog "  # emerge --config ${CATEGORY}/${PN}"
                elog ""
                elog "to install the default systab on this system."
-       else
-               local v
-               for v in ${REPLACING_VERSIONS}; do
-                       if ver_test "3.2.1" -gt ${v}; then
-                               # This is an upgrade
-
-                               elog "fcron's default systab was updated since 
your last installation."
-                               elog "You can use"
-                               elog ""
-                               elog "  # emerge --config ${CATEGORY}/${PN}"
-                               elog ""
-                               elog "to re-install systab (do not call this 
command before you"
-                               elog "have merged your configuration files)."
-
-                               # Show this elog only once
-                               break
-                       fi
-               done
+       elif ver_replacing -lt "3.2.1"; then
+               # This is an upgrade
+               elog "fcron's default systab was updated since your last 
installation."
+               elog "You can use"
+               elog ""
+               elog "  # emerge --config ${CATEGORY}/${PN}"
+               elog ""
+               elog "to re-install systab (do not call this command before you"
+               elog "have merged your configuration files)."
        fi
 
        if ! use system-crontab; then

Reply via email to