commit:     40743d92c2c07edc2f4482de4f8e1bb0d343f2d2
Author:     Alexis Ballier <aballier <AT> gentoo <DOT> org>
AuthorDate: Wed Aug 12 13:36:11 2020 +0000
Commit:     Alexis Ballier <aballier <AT> gentoo <DOT> org>
CommitDate: Wed Aug 12 13:36:18 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=40743d92

dev-ros/ament_cmake_uncrustify: fix python check deps

Closes: https://bugs.gentoo.org/736790
Package-Manager: Portage-3.0.2, Repoman-2.3.23
Signed-off-by: Alexis Ballier <aballier <AT> gentoo.org>

 dev-ros/ament_cmake_uncrustify/ament_cmake_uncrustify-0.9.5.ebuild | 6 +++---
 dev-ros/ament_cmake_uncrustify/ament_cmake_uncrustify-9999.ebuild  | 6 +++---
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/dev-ros/ament_cmake_uncrustify/ament_cmake_uncrustify-0.9.5.ebuild 
b/dev-ros/ament_cmake_uncrustify/ament_cmake_uncrustify-0.9.5.ebuild
index 4bbaef9545c..347b57dc9dc 100644
--- a/dev-ros/ament_cmake_uncrustify/ament_cmake_uncrustify-0.9.5.ebuild
+++ b/dev-ros/ament_cmake_uncrustify/ament_cmake_uncrustify-0.9.5.ebuild
@@ -49,9 +49,9 @@ BDEPEND="
 "
 
 python_check_deps() {
-       has_version "dev-ros/ament_copyright[${PYTHON_USEDEP}]" && \
-               has_version "dev-python/catkin_pkg[${PYTHON_USEDEP}]" && \
-               has_version "dev-python/ament_package[${PYTHON_USEDEP}]"
+       { use !test || has_version -b 
"dev-ros/ament_copyright[${PYTHON_USEDEP}]"; } && \
+               has_version -b "dev-python/catkin_pkg[${PYTHON_USEDEP}]" && \
+               has_version -b "dev-python/ament_package[${PYTHON_USEDEP}]"
 }
 
 src_configure() {

diff --git a/dev-ros/ament_cmake_uncrustify/ament_cmake_uncrustify-9999.ebuild 
b/dev-ros/ament_cmake_uncrustify/ament_cmake_uncrustify-9999.ebuild
index 4bbaef9545c..347b57dc9dc 100644
--- a/dev-ros/ament_cmake_uncrustify/ament_cmake_uncrustify-9999.ebuild
+++ b/dev-ros/ament_cmake_uncrustify/ament_cmake_uncrustify-9999.ebuild
@@ -49,9 +49,9 @@ BDEPEND="
 "
 
 python_check_deps() {
-       has_version "dev-ros/ament_copyright[${PYTHON_USEDEP}]" && \
-               has_version "dev-python/catkin_pkg[${PYTHON_USEDEP}]" && \
-               has_version "dev-python/ament_package[${PYTHON_USEDEP}]"
+       { use !test || has_version -b 
"dev-ros/ament_copyright[${PYTHON_USEDEP}]"; } && \
+               has_version -b "dev-python/catkin_pkg[${PYTHON_USEDEP}]" && \
+               has_version -b "dev-python/ament_package[${PYTHON_USEDEP}]"
 }
 
 src_configure() {

Reply via email to