net-fs/nfs-utils: Don't assume REPLACING_VERSIONS is singular
authorMatt Turner <mattst88@gentoo.org>
Mon, 2 Sep 2019 05:42:22 +0000 (22:42 -0700)
committerMatt Turner <mattst88@gentoo.org>
Mon, 2 Sep 2019 07:08:13 +0000 (00:08 -0700)
Closes: https://bugs.gentoo.org/589488
Signed-off-by: Matt Turner <mattst88@gentoo.org>
net-fs/nfs-utils/nfs-utils-2.3.3.ebuild
net-fs/nfs-utils/nfs-utils-2.3.4.ebuild
net-fs/nfs-utils/nfs-utils-2.4.1.ebuild

index b98297ce0b070f0e0dfa67b29cfb3e9f1384b4f5..77465d97e588956a00a7d967b869a011181505a0 100644 (file)
@@ -179,12 +179,14 @@ pkg_postinst() {
        done
 
        if systemd_is_booted; then
-               if [[ ${REPLACING_VERSIONS} < 1.3.0 ]]; then
-                       ewarn "We have switched to upstream systemd unit files. Since"
-                       ewarn "they got renamed, you should probably enable the new ones."
-                       ewarn "You can run 'equery files nfs-utils | grep systemd'"
-                       ewarn "to know what services you need to enable now."
-               fi
+               for v in ${REPLACING_VERSIONS}; do
+                       if ver_test "${v}" -lt 1.3.0; then
+                               ewarn "We have switched to upstream systemd unit files. Since"
+                               ewarn "they got renamed, you should probably enable the new ones."
+                               ewarn "You can run 'equery files nfs-utils | grep systemd'"
+                               ewarn "to know what services you need to enable now."
+                       fi
+               done
        else
                ewarn "If you use OpenRC, the nfsmount service has been replaced with nfsclient."
                ewarn "If you were using nfsmount, please add nfsclient and netmount to the"
index dafe5f83ce349edbde2764327f82755301cea0c4..975b78c549b1a1d82248a310d9392c79fda8d47f 100644 (file)
@@ -176,12 +176,14 @@ pkg_postinst() {
        done
 
        if systemd_is_booted; then
-               if [[ ${REPLACING_VERSIONS} < 1.3.0 ]]; then
-                       ewarn "We have switched to upstream systemd unit files. Since"
-                       ewarn "they got renamed, you should probably enable the new ones."
-                       ewarn "You can run 'equery files nfs-utils | grep systemd'"
-                       ewarn "to know what services you need to enable now."
-               fi
+               for v in ${REPLACING_VERSIONS}; do
+                       if ver_test "${v}" -lt 1.3.0; then
+                               ewarn "We have switched to upstream systemd unit files. Since"
+                               ewarn "they got renamed, you should probably enable the new ones."
+                               ewarn "You can run 'equery files nfs-utils | grep systemd'"
+                               ewarn "to know what services you need to enable now."
+                       fi
+               done
        else
                ewarn "If you use OpenRC, the nfsmount service has been replaced with nfsclient."
                ewarn "If you were using nfsmount, please add nfsclient and netmount to the"
index aff15752fd00b38db03ce0e8b157ee4b3260d5df..0fcea1be6f26b841c429dbe044ea1527cc489707 100644 (file)
@@ -187,12 +187,14 @@ pkg_postinst() {
        done
 
        if systemd_is_booted; then
-               if [[ ${REPLACING_VERSIONS} < 1.3.0 ]]; then
-                       ewarn "We have switched to upstream systemd unit files. Since"
-                       ewarn "they got renamed, you should probably enable the new ones."
-                       ewarn "You can run 'equery files nfs-utils | grep systemd'"
-                       ewarn "to know what services you need to enable now."
-               fi
+               for v in ${REPLACING_VERSIONS}; do
+                       if ver_test "${v}" -lt 1.3.0; then
+                               ewarn "We have switched to upstream systemd unit files. Since"
+                               ewarn "they got renamed, you should probably enable the new ones."
+                               ewarn "You can run 'equery files nfs-utils | grep systemd'"
+                               ewarn "to know what services you need to enable now."
+                       fi
+               done
        else
                ewarn "If you use OpenRC, the nfsmount service has been replaced with nfsclient."
                ewarn "If you were using nfsmount, please add nfsclient and netmount to the"