Danek Duvall wrote: > On Thu, Aug 21, 2008 at 10:14:45AM -0500, Shawn Walker wrote: > >> Do we have a definition of what the package name can be? > > Not specifically, that I know of.
So what should I limit the characters to? What is a reasonable definition in your opinion? Just add '/' to what I have for now? >>> application/vim >> Oops. Still, fmri.get_name() should return just the name portion right? >> Since we already have fmri.get_pkg_stem()? > > get_name() returns the name. get_pkg_stem() returns the "pkg:/" scheme, > the authority, and the name, unless asked otherwise. > > The name is the entire packag name. In my example above, that's > "application/vim". "vim" is just a terminal substring of the name (though, > if unique, one that can represent the name on its own; see fmri_match()). I didn't realise that. Thanks for the explanation. -- Shawn Walker _______________________________________________ pkg-discuss mailing list [email protected] http://mail.opensolaris.org/mailman/listinfo/pkg-discuss
