Brock Pytlik wrote:
> Adding pkg-discuss to the cc list.
>
> Ethan Quach wrote:
>>
>>
>> Michal Pryc wrote:
>>> Hi,
>>> I would like to make sure that this will not be lost somewhere
>>> between other bugs, so I have small question regarding bug 3718:
>>>
>>> http://defect.opensolaris.org/bz/show_bug.cgi?id=3718
>>>
>>> Are some changes on the libbe side necessary to fix this bug?
>>>
>> I would think so. libbe currently doesn't provide a public
>> interface to validate a BE name, which is what I'd presume
>> the pkg API would want to call into to do the work.
> That sounds like exactly what we would like to have.
>>
>> We can add one for the code going forward. But what about
>> older builds? Is this new feature in the pkgmanager getting
>> backpublished?
>>
> There are a few possible options. We could back publish with a
> dependency on libbe so that the new libbe would get pulled in when the
> SUNWipkg package is upgraded. Given the scope of SUNWinstall-libs
> dependencies, I'm not sure that would be the wisest choice. The second
> option would be to make sure that the code was able to deal with the
> library missing that function. I'm guessing that would mean making sure
> to catch the appropriate exception in the appropriate place and tell the
> user that choosing a BE name at this time isn't supported but will be
> after their next image-update. The third option would be to simply
> create a new boundary at whatever build this goes into, and don't
> backpublish back beyond that point. I don't think that's the ideal
> solution, but it's probably the easiest from our perspective. I'd
> imagine the choice of what we'll actually do will get made by
> Stephen/Danek/Bart/Dan (ie, the people who have experience with these
> kinds of decisions). My preference would be for the second option and my
> guess is that, assuming it's feasible, that's what we'll go with.
Brock,
I really like the second option. From the solution point of view, we
could do:
try:
import libbe
libbe.require("1.0")
except ImportError:
do the stuff with older version
It's similar to what is in the pygtk:
http://faq.pygtk.org/index.py?req=show&file=faq02.006.htp
--
best
Michal Pryc
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss