Gentoo Archives: gentoo-dev

From: "Michał Górny" <mgorny@g.o>
To: gentoo-dev@l.g.o
Cc: Arthur Zamarin <arthurzam@g.o>
Subject: [gentoo-dev] [PATCH 16/18] python-any-r1.eclass: use python_has_version in examples
Date: Sat, 04 Jun 2022 09:08:55
Message-Id: 20220604090334.4003-17-mgorny@gentoo.org
In Reply to: [gentoo-dev] [PATCH 00/18] distutils-r1.eclass D_U_PEP517=no mode & other patches by "Michał Górny"
1 From: Arthur Zamarin <arthurzam@g.o>
2
3 python_has_version is preferred as it gives nicer output and safer
4 defaults, instead of has_version.
5 ---
6 eclass/python-any-r1.eclass | 10 +++++-----
7 1 file changed, 5 insertions(+), 5 deletions(-)
8
9 diff --git a/eclass/python-any-r1.eclass b/eclass/python-any-r1.eclass
10 index 2051b5e89b81..fc66434cc6bf 100644
11 --- a/eclass/python-any-r1.eclass
12 +++ b/eclass/python-any-r1.eclass
13 @@ -139,7 +139,7 @@ EXPORT_FUNCTIONS pkg_setup
14 # Example use:
15 # @CODE
16 # python_check_deps() {
17 -# has_version "dev-python/foo[${PYTHON_USEDEP}]"
18 +# python_has_version "dev-python/foo[${PYTHON_USEDEP}]"
19 # }
20 # @CODE
21 #
22 @@ -161,7 +161,7 @@ EXPORT_FUNCTIONS pkg_setup
23 # Example use:
24 # @CODE
25 # python_check_deps() {
26 -# has_version "dev-python/bar[${PYTHON_SINGLE_USEDEP}]"
27 +# python_has_version "dev-python/bar[${PYTHON_SINGLE_USEDEP}]"
28 # }
29 # @CODE
30 #
31 @@ -228,9 +228,9 @@ if [[ ! ${_PYTHON_ANY_R1} ]]; then
32 # dev-python/baz[${PYTHON_USEDEP}] )')"
33 #
34 # python_check_deps() {
35 -# has_version "dev-python/foo[${PYTHON_SINGLE_USEDEP}]" \
36 -# && { has_version "dev-python/bar[${PYTHON_USEDEP}]" \
37 -# || has_version "dev-python/baz[${PYTHON_USEDEP}]"; }
38 +# python_has_version "dev-python/foo[${PYTHON_SINGLE_USEDEP}]" \
39 +# && { python_has_version "dev-python/bar[${PYTHON_USEDEP}]" \
40 +# || python_has_version "dev-python/baz[${PYTHON_USEDEP}]"; }
41 # }
42 # @CODE
43 #
44 --
45 2.35.1