Brock Pytlik wrote:
> Hi Shawn looks good in general. To be clear (since it's been a while
> since I've dug in regexps) pkg names are now allowed to have letters, .
> - and _ in them, and must start with a letter? This does go against what
> I've understood is allowed to be in a package name, specifically, it
> outlaws "/" (see the discussion here:
> http://defect.opensolaris.org/bz/show_bug.cgi?id=2938). Do we have the
> list of legal characters for a fmri documented? (Either here or in other
> projects like SMF which also use fmris?)
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_-.]*.
...
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.
--
Shawn Walker
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss