From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 83138138335 for ; Mon, 2 Sep 2019 07:08:48 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B9916E087F; Mon, 2 Sep 2019 07:08:47 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 7F59FE087F for ; Mon, 2 Sep 2019 07:08:47 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 80AB234AA06 for ; Mon, 2 Sep 2019 07:08:46 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 8BCA977A for ; Mon, 2 Sep 2019 07:08:44 +0000 (UTC) From: "Matt Turner" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Matt Turner" Message-ID: <1567408093.8f9dc630bef434841f8b8a6f9ba6f263a0d1cd70.mattst88@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-fs/nfs-utils/ X-VCS-Repository: repo/gentoo X-VCS-Files: 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 X-VCS-Directories: net-fs/nfs-utils/ X-VCS-Committer: mattst88 X-VCS-Committer-Name: Matt Turner X-VCS-Revision: 8f9dc630bef434841f8b8a6f9ba6f263a0d1cd70 X-VCS-Branch: master Date: Mon, 2 Sep 2019 07:08:44 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: f9681e55-9dc2-4aff-ac54-7be2ef1c3dfc X-Archives-Hash: f2911492a81a7ce3a0acc5338d12f71c commit: 8f9dc630bef434841f8b8a6f9ba6f263a0d1cd70 Author: Matt Turner gentoo org> AuthorDate: Mon Sep 2 05:42:22 2019 +0000 Commit: Matt Turner gentoo org> CommitDate: Mon Sep 2 07:08:13 2019 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8f9dc630 net-fs/nfs-utils: Don't assume REPLACING_VERSIONS is singular Closes: https://bugs.gentoo.org/589488 Signed-off-by: Matt Turner gentoo.org> net-fs/nfs-utils/nfs-utils-2.3.3.ebuild | 14 ++++++++------ net-fs/nfs-utils/nfs-utils-2.3.4.ebuild | 14 ++++++++------ net-fs/nfs-utils/nfs-utils-2.4.1.ebuild | 14 ++++++++------ 3 files changed, 24 insertions(+), 18 deletions(-) diff --git a/net-fs/nfs-utils/nfs-utils-2.3.3.ebuild b/net-fs/nfs-utils/nfs-utils-2.3.3.ebuild index b98297ce0b0..77465d97e58 100644 --- a/net-fs/nfs-utils/nfs-utils-2.3.3.ebuild +++ b/net-fs/nfs-utils/nfs-utils-2.3.3.ebuild @@ -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" diff --git a/net-fs/nfs-utils/nfs-utils-2.3.4.ebuild b/net-fs/nfs-utils/nfs-utils-2.3.4.ebuild index dafe5f83ce3..975b78c549b 100644 --- a/net-fs/nfs-utils/nfs-utils-2.3.4.ebuild +++ b/net-fs/nfs-utils/nfs-utils-2.3.4.ebuild @@ -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" diff --git a/net-fs/nfs-utils/nfs-utils-2.4.1.ebuild b/net-fs/nfs-utils/nfs-utils-2.4.1.ebuild index aff15752fd0..0fcea1be6f2 100644 --- a/net-fs/nfs-utils/nfs-utils-2.4.1.ebuild +++ b/net-fs/nfs-utils/nfs-utils-2.4.1.ebuild @@ -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"