1 |
On Mon, 10 Sep 2012 09:30:35 +0200 |
2 |
Michał Górny <mgorny@g.o> wrote: |
3 |
> On Mon, 10 Sep 2012 07:40:40 +0100 |
4 |
> Ciaran McCreesh <ciaran.mccreesh@××××××××××.com> wrote: |
5 |
> > On Sun, 9 Sep 2012 23:31:24 +0200 |
6 |
> > Michał Górny <mgorny@g.o> wrote: |
7 |
> > > > best_version Takes exactly one package dependency specification |
8 |
> > > > as an argument. If a matching package is installed, prints |
9 |
> > > > the category, package name and version of the highest matching |
10 |
> > > > version. |
11 |
> > > |
12 |
> > > What happens if no matching package is installed? Is it then even |
13 |
> > > legal to call the function then? |
14 |
> > |
15 |
> > If there's no matching package installed, it doesn't print anything. |
16 |
> |
17 |
> Is it guaranteed to return with 0 exit status then? |
18 |
|
19 |
Paludis returns non-zero if there's nothing installed, and zero if a |
20 |
match is found. Don't know if Portage does the same, or whether we want |
21 |
to guarantee this behaviour. |
22 |
|
23 |
-- |
24 |
Ciaran McCreesh |