commit:     b52cc8dffe22a0f0428d1bb533acc1b1b92e411e
Author:     Brian Evans <grknight <AT> gentoo <DOT> org>
AuthorDate: Mon Sep 17 14:58:21 2018 +0000
Commit:     Brian Evans <grknight <AT> gentoo <DOT> org>
CommitDate: Wed Oct 24 12:56:36 2018 +0000
URL:        https://gitweb.gentoo.org/proj/devmanual.git/commit/?id=b52cc8df

function-reference/query-functions: Add EAPI=7 options for {has,best}_version

Signed-off-by: Brian Evans <grknight <AT> gentoo.org>

 function-reference/query-functions/text.xml | 12 ++++++++++--
 1 file 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>

Reply via email to