1 |
commit: dc06df5aac9b789d94d445c4fdd6920cd99ee317 |
2 |
Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Jun 2 17:57:26 2022 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Jun 7 06:53:54 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dc06df5a |
7 |
|
8 |
python-any-r1.eclass: use python_has_version in examples |
9 |
|
10 |
python_has_version is preferred as it gives nicer output and safer |
11 |
defaults, instead of has_version. |
12 |
|
13 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
14 |
|
15 |
eclass/python-any-r1.eclass | 10 +++++----- |
16 |
1 file changed, 5 insertions(+), 5 deletions(-) |
17 |
|
18 |
diff --git a/eclass/python-any-r1.eclass b/eclass/python-any-r1.eclass |
19 |
index 2051b5e89b81..fc66434cc6bf 100644 |
20 |
--- a/eclass/python-any-r1.eclass |
21 |
+++ b/eclass/python-any-r1.eclass |
22 |
@@ -139,7 +139,7 @@ EXPORT_FUNCTIONS pkg_setup |
23 |
# Example use: |
24 |
# @CODE |
25 |
# python_check_deps() { |
26 |
-# has_version "dev-python/foo[${PYTHON_USEDEP}]" |
27 |
+# python_has_version "dev-python/foo[${PYTHON_USEDEP}]" |
28 |
# } |
29 |
# @CODE |
30 |
# |
31 |
@@ -161,7 +161,7 @@ EXPORT_FUNCTIONS pkg_setup |
32 |
# Example use: |
33 |
# @CODE |
34 |
# python_check_deps() { |
35 |
-# has_version "dev-python/bar[${PYTHON_SINGLE_USEDEP}]" |
36 |
+# python_has_version "dev-python/bar[${PYTHON_SINGLE_USEDEP}]" |
37 |
# } |
38 |
# @CODE |
39 |
# |
40 |
@@ -228,9 +228,9 @@ if [[ ! ${_PYTHON_ANY_R1} ]]; then |
41 |
# dev-python/baz[${PYTHON_USEDEP}] )')" |
42 |
# |
43 |
# python_check_deps() { |
44 |
-# has_version "dev-python/foo[${PYTHON_SINGLE_USEDEP}]" \ |
45 |
-# && { has_version "dev-python/bar[${PYTHON_USEDEP}]" \ |
46 |
-# || has_version "dev-python/baz[${PYTHON_USEDEP}]"; } |
47 |
+# python_has_version "dev-python/foo[${PYTHON_SINGLE_USEDEP}]" \ |
48 |
+# && { python_has_version "dev-python/bar[${PYTHON_USEDEP}]" \ |
49 |
+# || python_has_version "dev-python/baz[${PYTHON_USEDEP}]"; } |
50 |
# } |
51 |
# @CODE |
52 |
# |