* Re: [gentoo-pms] [PATCH 2/6] best_version: Explicitly specify the output format
@ 2018-05-01 11:49 99% ` Michał Górny
0 siblings, 0 replies; 1+ results
From: Michał Górny @ 2018-05-01 11:49 UTC (permalink / raw
To: gentoo-pms
W dniu wto, 01.05.2018 o godzinie 13∶33 +0200, użytkownik Ulrich Mueller
napisał:
> > > > > > On Tue, 1 May 2018, Michał Górny wrote:
> > 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 | 5 +++--
> > 1 file changed, 3 insertions(+), 2 deletions(-)
> > diff --git a/pkg-mgr-commands.tex b/pkg-mgr-commands.tex
> > index cb704f0..4299624 100644
> > --- a/pkg-mgr-commands.tex
> > +++ b/pkg-mgr-commands.tex
> > @@ -105,8 +105,9 @@ are given, \t{-r} is assumed.
> > \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.
> > + matching package is installed, prints the category, followed by \t{/}, followed by package
> > + name, followed by \t{-}, followed by full version of the highest matching version;
>
> Do we really need this? I think that "category, package name and
> version" is pretty clear.
>
I don't think it's well-specified anywhere. The current wording would
work as well with the format used by qatom:
dev-python foo 2
--
Best regards,
Michał Górny
^ permalink raw reply [relevance 99%]
Results 1-1 of 1 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2018-05-01 11:23 [gentoo-pms] [PATCH 0/6] Ebuild-specific commands clarification & cleanup Michał Górny
2018-05-01 11:23 ` [gentoo-pms] [PATCH 2/6] best_version: Explicitly specify the output format Michał Górny
2018-05-01 11:33 ` Ulrich Mueller
2018-05-01 11:49 99% ` Michał Górny
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox