Gentoo Archives: gentoo-pms

From: "Michał Górny" <mgorny@g.o>
To: gentoo-pms@l.g.o
Subject: Re: [gentoo-pms] [PATCH 2/6] best_version: Explicitly specify the output format
Date: Tue, 01 May 2018 11:49:10
Message-Id: 1525175345.1643.5.camel@gentoo.org
In Reply to: Re: [gentoo-pms] [PATCH 2/6] best_version: Explicitly specify the output format by Ulrich Mueller
1 W dniu wto, 01.05.2018 o godzinie 13∶33 +0200, użytkownik Ulrich Mueller
2 napisał:
3 > > > > > > On Tue, 1 May 2018, Michał Górny wrote:
4 > > Explain the format used by best_version command explicitly. Currently,
5 > > the function only lists what gets printed but not in what form or how it
6 > > is separated.
7 > > ---
8 > > pkg-mgr-commands.tex | 5 +++--
9 > > 1 file changed, 3 insertions(+), 2 deletions(-)
10 > > diff --git a/pkg-mgr-commands.tex b/pkg-mgr-commands.tex
11 > > index cb704f0..4299624 100644
12 > > --- a/pkg-mgr-commands.tex
13 > > +++ b/pkg-mgr-commands.tex
14 > > @@ -105,8 +105,9 @@ are given, \t{-r} is assumed.
15 > > \item[has_version] Takes exactly one package dependency specification as an argument. Returns
16 > > true if a package matching the specification is installed, and false otherwise.
17 > > \item[best_version] Takes exactly one package dependency specification as an argument. If a
18 > > - matching package is installed, prints the category, package name and version of the highest
19 > > - matching version; otherwise, prints an empty string. The exit code is unspecified.
20 > > + matching package is installed, prints the category, followed by \t{/}, followed by package
21 > > + name, followed by \t{-}, followed by full version of the highest matching version;
22 >
23 > Do we really need this? I think that "category, package name and
24 > version" is pretty clear.
25 >
26
27 I don't think it's well-specified anywhere. The current wording would
28 work as well with the format used by qatom:
29
30 dev-python foo 2
31
32
33 --
34 Best regards,
35 Michał Górny