app-admin/puppet: fix post_install for 5.7.7
authorMatthew Thode <prometheanfire@gentoo.org>
Mon, 19 Nov 2018 19:12:01 +0000 (13:12 -0600)
committerMatthew Thode <prometheanfire@gentoo.org>
Mon, 19 Nov 2018 19:12:01 +0000 (13:12 -0600)
Fixes: https://bugs.gentoo.org/671128
Package-Manager: Portage-2.3.51, Repoman-2.3.12
Signed-off-by: Matthew Thode <prometheanfire@gentoo.org>
app-admin/puppet/puppet-5.5.8.ebuild

index fb4ab3b1efc0eeb0fec4ae0bbfa12ea2abd3cecf..9c7be05b33a2e95c20080e89ac614a8da106b25b 100644 (file)
@@ -134,8 +134,7 @@ pkg_postinst() {
        elog
 
        for v in ${REPLACING_VERSIONS}; do
-               v=$(ver_cut "4.0.0" "$v")
-               if [ ver_test "$v" -eq "4" ]; then
+               if [ "$(ver_cut 1 "$v")" -eq "4" ]; then
                        elog
                        elog "Please see the following url for the release notes for puppet-5"
                        elog "https://docs.puppet.com/puppet/5.0/release_notes.html#if-youre-upgrading-from-puppet-4x"