commit:     e94d3855452a0398e3764d7b4a9034c9808bc050
Author:     Mike Gilbert <floppym <AT> gentoo <DOT> org>
AuthorDate: Fri Feb  7 17:00:25 2020 +0000
Commit:     Mike Gilbert <floppym <AT> gentoo <DOT> org>
CommitDate: Fri Feb  7 17:00:25 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e94d3855

sys-apps/coreutils: simplify python_check_deps

pkg_setup already checks the 'test' USE flag, so we don't need to do it
again.

Bug: https://bugs.gentoo.org/708588
Package-Manager: Portage-2.3.86_p1, Repoman-2.3.20_p43
Signed-off-by: Mike Gilbert <floppym <AT> gentoo.org>

 sys-apps/coreutils/coreutils-8.30.ebuild    | 4 +---
 sys-apps/coreutils/coreutils-8.31-r1.ebuild | 4 +---
 sys-apps/coreutils/coreutils-8.31.ebuild    | 4 +---
 3 files changed, 3 insertions(+), 9 deletions(-)

diff --git a/sys-apps/coreutils/coreutils-8.30.ebuild 
b/sys-apps/coreutils/coreutils-8.30.ebuild
index 6c40cc43000..03b60ae8554 100644
--- a/sys-apps/coreutils/coreutils-8.30.ebuild
+++ b/sys-apps/coreutils/coreutils-8.30.ebuild
@@ -55,9 +55,7 @@ RDEPEND+="
        !<net-fs/netatalk-2.0.3-r4"
 
 python_check_deps() {
-       if use test; then
-               has_version --host-root "dev-python/pyinotify[${PYTHON_USEDEP}]"
-       fi
+       has_version --host-root "dev-python/pyinotify[${PYTHON_USEDEP}]"
 }
 
 pkg_setup() {

diff --git a/sys-apps/coreutils/coreutils-8.31-r1.ebuild 
b/sys-apps/coreutils/coreutils-8.31-r1.ebuild
index 5860f7daa1b..b41b9ca21bf 100644
--- a/sys-apps/coreutils/coreutils-8.31-r1.ebuild
+++ b/sys-apps/coreutils/coreutils-8.31-r1.ebuild
@@ -53,9 +53,7 @@ RDEPEND+="
        !<net-fs/netatalk-2.0.3-r4"
 
 python_check_deps() {
-       if use test; then
-               has_version --host-root "dev-python/pyinotify[${PYTHON_USEDEP}]"
-       fi
+       has_version --host-root "dev-python/pyinotify[${PYTHON_USEDEP}]"
 }
 
 pkg_setup() {

diff --git a/sys-apps/coreutils/coreutils-8.31.ebuild 
b/sys-apps/coreutils/coreutils-8.31.ebuild
index eb8a90e4699..31a4e535548 100644
--- a/sys-apps/coreutils/coreutils-8.31.ebuild
+++ b/sys-apps/coreutils/coreutils-8.31.ebuild
@@ -55,9 +55,7 @@ RDEPEND+="
        !<net-fs/netatalk-2.0.3-r4"
 
 python_check_deps() {
-       if use test; then
-               has_version --host-root "dev-python/pyinotify[${PYTHON_USEDEP}]"
-       fi
+       has_version --host-root "dev-python/pyinotify[${PYTHON_USEDEP}]"
 }
 
 pkg_setup() {

Reply via email to