[pkg-discuss] Seeking clarification on pkg selection with multiple authorities

Tom Mueller (pkg-discuss) Tom.Mueller at Sun.COM
Tue Jul 15 07:39:18 PDT 2008


Consider this case:

Authority a has foo at 2.1 and is the preferred authority.
Authority b has foo at 3.0.

Based on reading the image.make_install_plan method,

pkg install foo

selects pkg://a/foo@2.1 to install.

Is that the expected behavior?

Now consider another case starting with the same situation above.
Another package in authority a, bar at 1.0 has a required dependency on foo 
(target=foo). The command:

pkg install bar

Will select pkg://b/foo@3.0 since the dependency evaluation logic in 
imageplan.evaluate_fmri doesn't make a distinction between the preferred 
and non-preferred authorities.

Is that the expected behavior?

Together, these seem to be inconsistent with one another. 

Thoughts?
Thanks.
Tom






More information about the pkg-discuss mailing list