public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Brian Evans" <grknight@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/devmanual:master commit in: function-reference/query-functions/
Date: Wed, 24 Oct 2018 13:01:07 +0000 (UTC)	[thread overview]
Message-ID: <1540385796.b52cc8dffe22a0f0428d1bb533acc1b1b92e411e.grknight@gentoo> (raw)

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	other threads:[~2018-10-24 13:01 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-10-24 13:01 Brian Evans [this message]
  -- strict thread matches above, loose matches on Subject: below --
2023-10-05 18:58 [gentoo-commits] proj/devmanual:master commit in: function-reference/query-functions/ Ulrich Müller
2021-06-13 11:48 Ulrich Müller
2020-11-05 10:15 Ulrich Müller
2016-11-30  5:58 Göktürk Yüksek
2016-11-30  5:58 Göktürk Yüksek
2015-02-15  9:54 Markos Chandras
2015-02-15  9:54 Markos Chandras

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1540385796.b52cc8dffe22a0f0428d1bb533acc1b1b92e411e.grknight@gentoo \
    --to=grknight@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox