> The build 99 CD failed to build properly. One of the reasons was > > 3714 cannot uninstall package after authority removal > > I've a fix for this in > > http://cr.opensolaris.org/~dduvall/pkg-bug3714/ <snip>
> I'd like for K to look at it, to make sure that it jives with his view of > how authorities ought to be handled. If I've read and understood the analysis in 3714 correctly, I think the bug may actually be in Image.inventory(). My understanding is that the _PRE prefix told us that this FMRI should match the preferred authority, or in the case that it doesn't, the actual authority from which the package was installed. In the case shown in 3714, 'auth2' should become the preferred authority when you remove 'auth'. Since the FMRI was installed from the preferred authority, it ought to match 'auth2', now the currently preferred authority. In the analysis given, we're comparing pkg://auth/SUNWtcsh and pkg://SUNWtcsh; however, I believe we should be comparing pkg://_PRE_auth/SUNWtcsh and pkg://_PRE_auth/SUNWtcsh (note that the _PRE_ won't print from the _str_() method). Caveat emptor: some of this may have changed when Bart modified the multiple-authority code to defer to incorporations. I'm not certain what current interactions are between those two bits of code. The above is my understanding of how the world was supposed to work when I last wrote code to handle preferred and multiple authorities. Apologies in advance for any confusion. -j _______________________________________________ pkg-discuss mailing list [email protected] http://mail.opensolaris.org/mailman/listinfo/pkg-discuss
