Gentoo Archives: gentoo-commits

From: "Ulrich Müller" <ulm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/pms:master commit in: /
Date: Fri, 04 May 2018 07:26:14
Message-Id: 1525416828.9aec81ada7d355f462972eedb853dba393107dc6.ulm@gentoo
1 commit: 9aec81ada7d355f462972eedb853dba393107dc6
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Tue May 1 16:59:18 2018 +0000
4 Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org>
5 CommitDate: Fri May 4 06:53:48 2018 +0000
6 URL: https://gitweb.gentoo.org/proj/pms.git/commit/?id=9aec81ad
7
8 best_version: Explicitly specify the output format
9
10 Explain the format used by best_version command explicitly. Currently,
11 the function only lists what gets printed but not in what form or how it
12 is separated.
13
14 pkg-mgr-commands.tex | 6 +++---
15 1 file changed, 3 insertions(+), 3 deletions(-)
16
17 diff --git a/pkg-mgr-commands.tex b/pkg-mgr-commands.tex
18 index cb704f0..ffa7566 100644
19 --- a/pkg-mgr-commands.tex
20 +++ b/pkg-mgr-commands.tex
21 @@ -104,9 +104,9 @@ are given, \t{-r} is assumed.
22 \begin{description}
23 \item[has_version] Takes exactly one package dependency specification as an argument. Returns
24 true if a package matching the specification is installed, and false otherwise.
25 -\item[best_version] Takes exactly one package dependency specification as an argument. If a
26 - matching package is installed, prints the category, package name and version of the highest
27 - matching version; otherwise, prints an empty string. The exit code is unspecified.
28 +\item[best_version] Takes exactly one package dependency specification as an argument. If a matching
29 + package is installed, prints \t{category/package-version} of the highest matching version;
30 + otherwise, prints an empty string. The exit code is unspecified.
31 \end{description}
32
33 \ChangeWhenAddingAnEAPI{7}