Webrev:
http://cr.opensolaris.org/~bpytlik/ips-1929-v1/

Bug:
pkg list should give an option to display only current latest package
http://defect.opensolaris.org/bz/show_bug.cgi?id=1929

This webrev changes the default behavior of list to display only the 
most recent version of a package, and the version that's installed, if 
one is. It uses the -a option to decide whether to list all packages, or 
only those installed, and the -f flag to decide whether to list all 
versions, or only up to two.

I don't feel strongly about changing the default behavior. I don't care 
strongly about which options are used to designate what. I do think we 
need two options, one for the axis of installed vs all, and one for the 
axis of all versions vs up to 2.

Other options I considered were making all versions the default, and 
using -c to restrict the versions. I also thought of using -C in place 
of -f. If -a is preferred for the version control, then I'd suggest 
using -r for controlling whether all packages are displayed.

Performance:
 From my tests, it seems like the new code has the same speed as the 
old, or is possibly slightly faster, even when directed to a file for 
output, though it may have a slightly longer delay before the first 
result is printed to the screen. With the -f, it's about .016 seconds 
(on a base of 2.5 seconds) slower than the old pkg list, when both are 
directed to files.


Thanks,
Brock
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss

Reply via email to