Tom Mueller (pkg-discuss) wrote:
> jmr wrote:
>> Thanks Tom - as a workaround I could try the evaluation phase and if
>> the number of packages to install after evaluation are less than those
>> I gave it then this would indicate the user needs to do an
>> image-update and I can prompt them to that effect. If I had the data
>> before hand I could show a image-update icon beside the relevant
>> packages which would be a lot more helpful for the user.
> Be aware that this method could be fooled if a new version of a package
> includes a new dependency on a package that wasn't yet installed.

So IMHO the best would be to compare packages before and after eval:

Assuming that PKG_A PKG_B and PKG_C are installed and they have updates 
available running evaluation:

BEFORE:
    PKG_A_1
    PKG_B_1
    PKG_C_1

AFTER:
    PKG_A_2
    PKG_B_2
    PKG_D_1

This means that PKG_A and PKG_B can be updated and also some dependency 
will be installed PKG_D. If user wants to update PKG_C then only 
image-update is an option as this is incorporated.

??

best
Michal

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

Reply via email to