commit: 9aec81ada7d355f462972eedb853dba393107dc6
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Tue May 1 16:59:18 2018 +0000
Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Fri May 4 06:53:48 2018 +0000
URL: https://gitweb.gentoo.org/proj/pms.git/commit/?id=9aec81ad
best_version: Explicitly specify the output format
Explain the format used by best_version command explicitly. Currently,
the function only lists what gets printed but not in what form or how it
is separated.
pkg-mgr-commands.tex | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/pkg-mgr-commands.tex b/pkg-mgr-commands.tex
index cb704f0..ffa7566 100644
--- a/pkg-mgr-commands.tex
+++ b/pkg-mgr-commands.tex
@@ -104,9 +104,9 @@ are given, \t{-r} is assumed.
\begin{description}
\item[has_version] Takes exactly one package dependency specification as an
argument. Returns
true if a package matching the specification is installed, and false
otherwise.
-\item[best_version] Takes exactly one package dependency specification as an
argument. If a
- matching package is installed, prints the category, package name and
version of the highest
- matching version; otherwise, prints an empty string. The exit code is
unspecified.
+\item[best_version] Takes exactly one package dependency specification as an
argument. If a matching
+ package is installed, prints \t{category/package-version} of the highest
matching version;
+ otherwise, prints an empty string. The exit code is unspecified.
\end{description}
\ChangeWhenAddingAnEAPI{7}