Rich Burridge wrote: > Brock Pytlik wrote: >> Rich Burridge wrote: >>> ... >>> So this searches on sub-category value, but doesn't include >>> the info.classification Category in the VALUE field. This is >>> probably what you've been asked to do, but is there any way >>> of getting the Category value back? >>> >> I'll take a look. Given the choice of getting 2 of the 3 of: >> >> info.classification, org.opensolaris.category.2008, and system (the >> category and search term) >> >> >> Is there a consensus on which 2 to choose? >> >> One other potential option is to slam the category and scheme >> together (like they appear in the action) and place both in the value >> field. >> This would look like: >> $ pkg search -r system >> INDEX ACTION VALUE PACKAGE >> info.classification set >> org.opensolaris.category.2008:System/Security pkg:/[EMAIL PROTECTED] >> >> $ pkg search -r 'sound and video' >> INDEX ACTION VALUE PACKAGE >> info.classification set >> org.opensolaris.category.2008:Applications/Sound >> pkg:/[EMAIL PROTECTED] >> >> Note the incomplete reporting of the category in the second example >> because of the space in the name. If there's a strong preference for >> this output, I'll look into why the entire category isn't getting >> sent, and whether the solution is feasible in the time frame we have. > > I really like seeing all of the VALUE like in the two examples above. > Then if people want to post-process it further (although I suppose it's > not really output-for-scripts), it's simple to do. > Ok, after discussing this with Danek earlier along with the feedback here, here's another proposal for output (and a webrev which produces it).
$ pkg search -r 'sound and video' INDEX ACTION VALUE PACKAGE info.classification set Applications/Sound and Video pkg:/[EMAIL PROTECTED] $ pkg search system INDEX ACTION VALUE PACKAGE info.classification set System/Security pkg:/[EMAIL PROTECTED] Webrev now at: http://cr.opensolaris.org/~bpytlik/ips-4239-v2/ *Brock* _______________________________________________ pkg-discuss mailing list [email protected] http://mail.opensolaris.org/mailman/listinfo/pkg-discuss
