On Nov 19, 2008, at 7:39 PM, Bart Smaalders wrote:

> Ed McKnight wrote:
>> Suggestion: IPS to implement a package attribute, 'metapackage=true,'
>> which would mean that the contained dependencies would be treated as
>> reversed during uninstall, thus enabling the dependencies both to be
>> automatically installed and uninstalled. Maybe there should be
>> enforcement that nothing other than dependencies are contained, but  
>> I'm
>> not sure it's necessary.
>>
>
> We've talked about this; it's probably actually an attribute of the
> dependency or a different type of dependency rather than an attribute
> of the containing package.
>
> Some of this is waiting on our completion of capturing user intent,
> for the following reason:
>
> pkg install foo
> pkg install bar, which has a "meta-dependency" on foo
> pkg uninstall bar
>
> should not uninstall foo, whereas in the case of:
>
> pkg install bar, which has a "meta-dependency" on foo
> pkg uninstall bar
>
> it should... we cannot do this correctly w/o recording user intent.

how about something like:
pkg uninstall -r foo

which removes the base package along with all dependent meta- 
packages .. (here intent is signified at the base package node instead  
of at the leaf) .. for safety's sake you could also do something like:
pkg uninstall -nr foo

which would demonstrate what it would do without actually removing the  
packages for cases with nested dependencies .. eg:
bar has a "meta-dependency" on package foo *and* package fu

similar logic could also apply to updates

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

Reply via email to