Danek Duvall wrote:
On Sun, May 03, 2009 at 04:30:59AM -0500, Shawn Walker wrote:
http://cr.opensolaris.org/~swalker/pkg-8613/
Ignoring the question of whether we should be making these changes at all ...
Well, I'm very certain of the change for 8616.
Only 8613 seems controversial, though to me, it's just a bug-fix since
the behaviour isn't consistent at the moment.
As I mentioned to Brock, right now, if the preferred publisher matches
the publisher of the package at the time of installation, then switching
preferred publishers later will cause the package to be upgraded by
image-update (across publisher boundaries).
However, if the preferred publisher does not match the publisher of the
package at the time of installation, then image-update won't upgrade it
later (across publisher boundaries).
Either it needs to always respect publisher boundaries (whether install
or image-update is used and regardless of preferred publisher at the
time of installation) or it should always use the preferred publisher to
determine software source.
Until we have a way to record the specific intent of the user, and then
apply that during installation, I think this is the best compromise to
ensure that users can choose their software source using the preferred
status of a publisher.
imageplan.py:
t_pkg_image_update.py:
- line 230: Is there anything in the repo at durl3?
No, and that is intentional. I did that so that test1 and test2 would
become non-preferred, and both would offer the same packages while
depot3 offered nothing conflicting. That's so I can test that
installing a package from a non-preferred publisher will use the same
publisher for dependencies if the preferred publisher does not offer
those dependencies.
Currently, if two non-preferred publishers offer the same package and
its dependencies, which publisher gets used for the dependencies is random.
diff from last webrev:
http://cr.opensolaris.org/~swalker/pkg-8613/v1-v2.patch
Cheers,
--
Shawn Walker
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss