Gentoo Archives: gentoo-pms

From: "Michał Górny" <mgorny@g.o>
To: gentoo-pms@l.g.o
Cc: "Michał Górny" <mgorny@g.o>
Subject: [gentoo-pms] [PATCH 2/6] best_version: Explicitly specify the output format
Date: Tue, 01 May 2018 11:24:10
Message-Id: 20180501112401.7606-3-mgorny@gentoo.org
In Reply to: [gentoo-pms] [PATCH 0/6] Ebuild-specific commands clarification & cleanup by "Michał Górny"
1 Explain the format used by best_version command explicitly. Currently,
2 the function only lists what gets printed but not in what form or how it
3 is separated.
4 ---
5 pkg-mgr-commands.tex | 5 +++--
6 1 file changed, 3 insertions(+), 2 deletions(-)
7
8 diff --git a/pkg-mgr-commands.tex b/pkg-mgr-commands.tex
9 index cb704f0..4299624 100644
10 --- a/pkg-mgr-commands.tex
11 +++ b/pkg-mgr-commands.tex
12 @@ -105,8 +105,9 @@ are given, \t{-r} is assumed.
13 \item[has_version] Takes exactly one package dependency specification as an argument. Returns
14 true if a package matching the specification is installed, and false otherwise.
15 \item[best_version] Takes exactly one package dependency specification as an argument. If a
16 - matching package is installed, prints the category, package name and version of the highest
17 - matching version; otherwise, prints an empty string. The exit code is unspecified.
18 + matching package is installed, prints the category, followed by \t{/}, followed by package
19 + name, followed by \t{-}, followed by full version of the highest matching version;
20 + otherwise, prints an empty string. The exit code is unspecified.
21 \end{description}
22
23 \ChangeWhenAddingAnEAPI{7}
24 --
25 2.17.0

Replies