1 |
commit: b52cc8dffe22a0f0428d1bb533acc1b1b92e411e |
2 |
Author: Brian Evans <grknight <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Sep 17 14:58:21 2018 +0000 |
4 |
Commit: Brian Evans <grknight <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Oct 24 12:56:36 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/devmanual.git/commit/?id=b52cc8df |
7 |
|
8 |
function-reference/query-functions: Add EAPI=7 options for {has,best}_version |
9 |
|
10 |
Signed-off-by: Brian Evans <grknight <AT> gentoo.org> |
11 |
|
12 |
function-reference/query-functions/text.xml | 12 ++++++++++-- |
13 |
1 file changed, 10 insertions(+), 2 deletions(-) |
14 |
|
15 |
diff --git a/function-reference/query-functions/text.xml b/function-reference/query-functions/text.xml |
16 |
index 97d2dfb..8511c93 100644 |
17 |
--- a/function-reference/query-functions/text.xml |
18 |
+++ b/function-reference/query-functions/text.xml |
19 |
@@ -93,18 +93,22 @@ query variables and similar state. |
20 |
</tr> |
21 |
<tr> |
22 |
<ti> |
23 |
- <c>best_version pkg</c> |
24 |
+ <c>best_version [option] pkg</c> |
25 |
</ti> |
26 |
<ti> |
27 |
Echoes category, name and version of the highest version of <c>pkg</c> |
28 |
that is currently installed. |
29 |
Example: <c>best_version app-editors/emacs:24</c> will output |
30 |
<c>app-editors/emacs-24.5-r3</c>. |
31 |
+ (EAPI=7) An option may also be specified to query certain types of dependencies. |
32 |
+ <c>-b</c> for <c>BDEPEND</c> |
33 |
+ <c>-d</c> for <c>DEPEND</c> |
34 |
+ <c>-r</c> (default) for <c>RDEPEND</c> |
35 |
</ti> |
36 |
</tr> |
37 |
<tr> |
38 |
<ti> |
39 |
- <c>has_version pkg[flag]</c> |
40 |
+ <c>has_version [option] pkg[flag]</c> |
41 |
</ti> |
42 |
<ti> |
43 |
True if <c>pkg</c> (can include |
44 |
@@ -113,6 +117,10 @@ query variables and similar state. |
45 |
<uri link="::general-concepts/dependencies#built with use dependencies"/>) |
46 |
is installed. Example: <c>has_version |
47 |
"=app-editors/nano-2.5.3[nls,spell]"</c>. |
48 |
+ (EAPI=7) An option may also be specified to query certain types of dependencies. |
49 |
+ <c>-b</c> for <c>BDEPEND</c> |
50 |
+ <c>-d</c> for <c>DEPEND</c> |
51 |
+ <c>-r</c> (default) for <c>RDEPEND</c> |
52 |
</ti> |
53 |
</tr> |
54 |
</table> |