sys-apps/coreutils: simplify python_check_deps
authorMike Gilbert <floppym@gentoo.org>
Fri, 7 Feb 2020 17:00:25 +0000 (12:00 -0500)
committerMike Gilbert <floppym@gentoo.org>
Fri, 7 Feb 2020 17:00:25 +0000 (12:00 -0500)
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@gentoo.org>
sys-apps/coreutils/coreutils-8.30.ebuild
sys-apps/coreutils/coreutils-8.31-r1.ebuild
sys-apps/coreutils/coreutils-8.31.ebuild

index 6c40cc430002331748f6867c20a10d5266b9925c..03b60ae85543d0feb7c2b5bd46f0cec7187af6f3 100644 (file)
@@ -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() {
index 5860f7daa1b52dd4c33060421ed557ef5dae86e0..b41b9ca21bf03104b75a7250f89c0e1c7a6ea4fc 100644 (file)
@@ -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() {
index eb8a90e46999e75eaa5e961993b257b68db79594..31a4e5355488ce803ebf1b5222acd53bb3e26b8a 100644 (file)
@@ -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() {