[indiana-discuss] [pkg-discuss] pkg won't install older versions of packages

Danek Duvall danek.duvall at sun.com
Wed Apr 22 14:59:26 PDT 2009


On Wed, Apr 22, 2009 at 02:40:34PM -0700, Bart Smaalders wrote:

> 1) if there are no constraints on the image, do what the user specifies, 
> but take the latest package that matches the specification:
>
>   foo at 1.0  would match foo at 1.0.1, for example/
>
> To permit the installation of foo at 1.0 when foo at 1.0.1 exists, allow
> the specification of extra .0s as needed as in:
>
>   foo at 1.0.0, which would not match foo at 1.0.1

So one (perhaps small) issue with this is that if there are versions

    foo at 1.0
    foo at 1.0.0.1

then "foo at 1.0.0" will match the latter, not the former.  That is, it means
you have to know the version space immediately following the version you
want to install so that you don't install a version you don't want.  Or you
could add some "sufficiently large" number of .0s to "make sure" you don't
run into the problem: "foo at 1.0.0.0.0.0.0.0.0.0.0.0" (hopefully that's
enough).  I don't know how compelling that is, but I'm pretty sure I've
seen versions with two consecutive .0s before.

Danek



More information about the indiana-discuss mailing list