On Tue, Sep 09, 2008 at 09:03:19AM -0700, Stephen Hahn wrote:

> > >   Can I make a package that has an FMRI with a leading '0'?
> > 
> > When you say FMRI, I presume you mean package name?  With my proposal
> > for package naming, yes, 0.is.the.loneliest.number would be a valid
> > package name.  Do you want to prevent that?  It seems odd to exclude
> > 0 but include other digits.
> 
>   No, I meant does
> 
>   pkgsend open [EMAIL PROTECTED]
> 
>   fail?  (Such that depend actions are the only source of bad versions.)

The depot silently converts that into [EMAIL PROTECTED]  Anywhere a version with
leading zeros gets passed through a PkgVersion (DotSequence) constructor,
leading zeroes get stripped by the int() cast.  Depend actions don't have
this happen to their fmri attributes until they're evaluated at install
time.

The upshot is that yes, depend actions are the only source of bad versions.

Danek
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss

Reply via email to