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 v2 2/6] best_version: Explicitly specify the output format
Date: Tue, 01 May 2018 16:59:38
Message-Id: 20180501165922.22032-2-mgorny@gentoo.org
In Reply to: [gentoo-pms] [PATCH v2 1/6] nonfatal: Reword argument handling to be cleaner 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 | 6 +++---
6 1 file changed, 3 insertions(+), 3 deletions(-)
7
8 diff --git a/pkg-mgr-commands.tex b/pkg-mgr-commands.tex
9 index cb704f0..ffa7566 100644
10 --- a/pkg-mgr-commands.tex
11 +++ b/pkg-mgr-commands.tex
12 @@ -104,9 +104,9 @@ are given, \t{-r} is assumed.
13 \begin{description}
14 \item[has_version] Takes exactly one package dependency specification as an argument. Returns
15 true if a package matching the specification is installed, and false otherwise.
16 -\item[best_version] Takes exactly one package dependency specification as an argument. If a
17 - matching package is installed, prints the category, package name and version of the highest
18 - matching version; otherwise, prints an empty string. The exit code is unspecified.
19 +\item[best_version] Takes exactly one package dependency specification as an argument. If a matching
20 + package is installed, prints \t{category/package-version} of the highest matching version;
21 + otherwise, prints an empty string. The exit code is unspecified.
22 \end{description}
23
24 \ChangeWhenAddingAnEAPI{7}
25 --
26 2.17.0