diff options
author | Arthur Zamarin <arthurzam@gentoo.org> | 2022-06-02 20:57:26 +0300 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2022-06-07 08:53:54 +0200 |
commit | dc06df5aac9b789d94d445c4fdd6920cd99ee317 (patch) | |
tree | 321c2a80100ad94f4c8c7a032fa00edcb15c33e7 /eclass | |
parent | dev-python/gpep517: Use DISTUTILS_USE_PEP517=no (diff) | |
download | gentoo-dc06df5aac9b789d94d445c4fdd6920cd99ee317.tar.gz gentoo-dc06df5aac9b789d94d445c4fdd6920cd99ee317.tar.bz2 gentoo-dc06df5aac9b789d94d445c4fdd6920cd99ee317.zip |
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@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/python-any-r1.eclass | 10 |
1 files 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 # |