On Thu 26 Jun 2008 at 05:01PM, Nicolas Williams wrote:
> On Thu, Jun 26, 2008 at 02:43:29PM -0700, Jordan Brown wrote:
> > Danek Duvall wrote:
> > >>> Is there a 1.1 version that's different from 1.01?
> > >> Not yet, nor is there a 1.10 yet.
> > > 
> > > Though trailing zeroes are significant.  That's ten, not a different way 
> > > of
> > > writing one.
> > 
> > Is it?  In normal numerical representation, "1.1" and "1.10" are the 
> > same value, while "1.01" is a very different value.
> 
> I suspect IPS isn't treating pkg version numbers as reals, but as tuples
> of integers separated by periods.

Correct, they are converted into a list representation called
DotSequence in the code.  Thus, 1.1.1.93.23.1.2 is a valid version.

> One good reason to separate pkg and software version numbers is that you
> might make changes to a package without changing the packaged software
> at all.  Then, if your intention had been to have the pkg version number
> mimic the packaged software's, how would you encode such a change into
> the package's version number??

You'd republish the package with a newer timestamp.

        -dp

-- 
Daniel Price - Solaris Kernel Engineering - [EMAIL PROTECTED] - blogs.sun.com/dp
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss

Reply via email to