On 02/24/13 14:37, Tim Foster wrote:
On 02/23/13 02:33 PM, Erik Trauschke wrote:
This is a quick fix to change the default behavior of pkgrecv which
currently just syncs the latest packages.

It introduces a "-m latest" option to achieve the current default
behavior.

https://cr.opensolaris.org/action/browse/pkg/erisch/14851733/webrev/

Can you explain the intent of the bugfix?

The intent is to make the default behaviour the one most of our users are likely to need/want.

For example, if they pkgrecv a repository containing Solaris 11.1, it should also include all of the SRUs the customer might need to get there.

As we've discussed many times in the past, it's a bad idea to have users pick and choose which specific SRUs or updates they put into a repository (generally speaking) as that will likely lead to errors from the solver when certain systems can't be upgraded.

There's no concern about performance here as pkgrecv will still only copy packages that don't already exist to the destination repository.

This change follows the principle of least surprise for users that are synchronising repositories. Almost all of our documentation examples have had to be modified to include '-m all-timestamps' which is indication enough to me that the current default is a poor one.

The current default is really a holdover from the early pkg(5) days where it was more appropriate for a prototype OS distribution or internal sync use.

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

Reply via email to