diff options
author | Brian Evans <grknight@gentoo.org> | 2018-09-17 10:58:21 -0400 |
---|---|---|
committer | Brian Evans <grknight@gentoo.org> | 2018-10-24 08:56:36 -0400 |
commit | b52cc8dffe22a0f0428d1bb533acc1b1b92e411e (patch) | |
tree | 80e8c2c0e897827572e745e0e7822b2eef49af7a /function-reference | |
parent | ebuild-writing/variables: Add EAPI=7 variables (diff) | |
download | devmanual-b52cc8dffe22a0f0428d1bb533acc1b1b92e411e.tar.gz devmanual-b52cc8dffe22a0f0428d1bb533acc1b1b92e411e.tar.bz2 devmanual-b52cc8dffe22a0f0428d1bb533acc1b1b92e411e.zip |
function-reference/query-functions: Add EAPI=7 options for {has,best}_version
Signed-off-by: Brian Evans <grknight@gentoo.org>
Diffstat (limited to 'function-reference')
-rw-r--r-- | function-reference/query-functions/text.xml | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/function-reference/query-functions/text.xml b/function-reference/query-functions/text.xml index 97d2dfb..8511c93 100644 --- a/function-reference/query-functions/text.xml +++ b/function-reference/query-functions/text.xml @@ -93,18 +93,22 @@ query variables and similar state. </tr> <tr> <ti> - <c>best_version pkg</c> + <c>best_version [option] pkg</c> </ti> <ti> Echoes category, name and version of the highest version of <c>pkg</c> that is currently installed. Example: <c>best_version app-editors/emacs:24</c> will output <c>app-editors/emacs-24.5-r3</c>. + (EAPI=7) An option may also be specified to query certain types of dependencies. + <c>-b</c> for <c>BDEPEND</c> + <c>-d</c> for <c>DEPEND</c> + <c>-r</c> (default) for <c>RDEPEND</c> </ti> </tr> <tr> <ti> - <c>has_version pkg[flag]</c> + <c>has_version [option] pkg[flag]</c> </ti> <ti> True if <c>pkg</c> (can include @@ -113,6 +117,10 @@ query variables and similar state. <uri link="::general-concepts/dependencies#built with use dependencies"/>) is installed. Example: <c>has_version "=app-editors/nano-2.5.3[nls,spell]"</c>. + (EAPI=7) An option may also be specified to query certain types of dependencies. + <c>-b</c> for <c>BDEPEND</c> + <c>-d</c> for <c>DEPEND</c> + <c>-r</c> (default) for <c>RDEPEND</c> </ti> </tr> </table> |