Danek Duvall wrote:
> On Thu, Aug 21, 2008 at 01:29:00AM -0500, Shawn Walker wrote:
> 
>> As I mentioned, I based the naming restriction off of 
>> docs/tags-and-attributes.txt which states that:
>>
>>      The name field is a...a 7-bit locale [if locale is omitted].
>> ...
>>      Each of these fields is [A-Za-z][A-Za-z0-9_-.]*.
>> ...
> 
> But that's an attribute name, not an fmri name.

That's not how I interpret it, but it doesn't matter to me.  Do we have 
a definition of what the package name can be?  At the moment, this is 
the closest thing I have.

>> Note that my code is only checking the pkg stem (name) portion of an 
>> fmri -- it is not restricting all the possible characters in an fmri.
>>
>> As for the '/' -- that doesn't apply here as I'm just getting the pkg 
>> stem using the fmri module.  It's supposed to strip out any authority 
>> indicators, etc.
> 
> Package stems are intended to be things like
> 
>     application/vim

Oops.  Still, fmri.get_name()  should return just the name portion 
right?  Since we already have fmri.get_pkg_stem()?

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

Reply via email to