Danek Duvall wrote:
> On Mon, May 12, 2008 at 04:45:53PM +0200, Alexander Vlasov wrote:
>
>   
>> Sorry. I mean, in case pkg uninstalling som package SUNWhatever which 
>> contains /usr, /usr/whatever, /usr/whatever/bin/, 
>> /usr/whatever/bin/whatever -- I suppose it will delete all directories 
>> which belong to package, but not /usr.
>>     
>
>   
>> The question is: it this because /usr is not empty ot /usr is present in
>> other packages?
>>     
>
> If I'm reading the code correctly, because it's present in other packages.
>   
It actually means package SHOULD ship all directories, otherwise during 
one sunny day you'll find all your /usr/bin/* moved to /var/pkg because 
nobody cared to include dir action for /usr
>> would it delete /usr/whatever/bin/, if I did `touch
>> /usr/whatever/bin/dummyfile' before uninstalling?
>>     
>
> It wouldn't delete it, but it would move it aside, to a directory under
> /var/pkg.  See the remove() method of the directory action, and the
> salvagedir() method of Image.
>   
Thanks, I'll take a look.
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss

Reply via email to