commit:     dc06df5aac9b789d94d445c4fdd6920cd99ee317
Author:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
AuthorDate: Thu Jun  2 17:57:26 2022 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Tue Jun  7 06:53:54 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dc06df5a

python-any-r1.eclass: use python_has_version in examples

python_has_version is preferred as it gives nicer output and safer
defaults, instead of has_version.

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 eclass/python-any-r1.eclass | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/eclass/python-any-r1.eclass b/eclass/python-any-r1.eclass
index 2051b5e89b81..fc66434cc6bf 100644
--- a/eclass/python-any-r1.eclass
+++ b/eclass/python-any-r1.eclass
@@ -139,7 +139,7 @@ EXPORT_FUNCTIONS pkg_setup
 # Example use:
 # @CODE
 # python_check_deps() {
-#      has_version "dev-python/foo[${PYTHON_USEDEP}]"
+#      python_has_version "dev-python/foo[${PYTHON_USEDEP}]"
 # }
 # @CODE
 #
@@ -161,7 +161,7 @@ EXPORT_FUNCTIONS pkg_setup
 # Example use:
 # @CODE
 # python_check_deps() {
-#      has_version "dev-python/bar[${PYTHON_SINGLE_USEDEP}]"
+#      python_has_version "dev-python/bar[${PYTHON_SINGLE_USEDEP}]"
 # }
 # @CODE
 #
@@ -228,9 +228,9 @@ if [[ ! ${_PYTHON_ANY_R1} ]]; then
 #              dev-python/baz[${PYTHON_USEDEP}] )')"
 #
 # python_check_deps() {
-#      has_version "dev-python/foo[${PYTHON_SINGLE_USEDEP}]" \
-#              && { has_version "dev-python/bar[${PYTHON_USEDEP}]" \
-#                      || has_version "dev-python/baz[${PYTHON_USEDEP}]"; }
+#      python_has_version "dev-python/foo[${PYTHON_SINGLE_USEDEP}]" \
+#              && { python_has_version "dev-python/bar[${PYTHON_USEDEP}]" \
+#                      || python_has_version 
"dev-python/baz[${PYTHON_USEDEP}]"; }
 # }
 # @CODE
 #

Reply via email to