Reduced the output of the state pkg.latest.

When using the state "pkg.latest", the list of packages is output even when they are not updated. That is really annoying when using a long list of packages and clobbers the output. This patch will output the packages only if the list is less than 10 long, otherwise it will just output the number of packages.
I know that putting the hard-coded number "10" is not good style. If you want me to, I can make this a configurable variable.