Albert White wrote:
> Hi Chris,
> 
> Chris Ridd wrote:
>> On 14 Oct 2008, at 15:58, Albert White (Home) wrote:
>>
>>> Hi,
>>>
>>> I notice that FMRI's that have leading 0's to any number in fields do
>>> not work.
>>>
>>> For example
>>> 'pkgsend open [EMAIL PROTECTED],5.11-0.98.0.1.0'  works fine, but
>>> 'pkgsend open [EMAIL PROTECTED],5.11-0.98.0.01.0' fails. [1]
>>>
>>> I'm wondering if this is a bug or by design?
>> I raised that here around the 26th June ("Package version numbers lose  
>> leading zeros") and it is by design. Or at least it is a deliberate  
>> decision. The numbers between dots are treated as simple integers.
> 
> Thanks for the pointer. I missed that in my search of the archives.
> 
>> There might be somewhere to stash a "real" version string inside the  
>> package metadata, but it wouldn't be in the FMRI.
> 
> I don't think its a big issue for us. We've conventionally used versions of 
> 01, 02... etc. I guess we just need to ensure we drop the leading 0's.

We really need a strict ordering; the easiest way to do that is to
represent the version as an arbitrary precision set of integers.
Maintaining that as the internal representation but allowing leading
0's isn't very attractive code-wise.

- Bart

-- 
Bart Smaalders                  Solaris Kernel Performance
[EMAIL PROTECTED]               http://blogs.sun.com/barts
"You will contribute more with mercurial than with thunderbird."
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss

Reply via email to