[wpkg-users] chain/depend strangeness...

Carlos R. Pasqualini pasqualinic at fcal.uner.edu.ar
Thu Jun 27 20:43:14 CEST 2013


El jue, 27-06-2013 a las 17:31 +0200, Marco Gaiarin escribió:
> I've setup libreoffice and the italian help package as:
> 
>   <package
>         id="libreoffice" 
> 	[...]
>         <chain package-id="libreoffice-help-it" />
> 
>   <package
>         id="libreoffice-help-it" 
> 	[...]
>         <depends package-id="libreoffice" />
> 
> the rationale is simple: i want to install the italian help with the
> program, but i want also to be sure that the help got installer *after*
> the program.
> 
> Every time i have an upgrade/install, i got:
> 
>  Package 'LibreOffice Help (it)' (libreoffice-help-it): Already installed but version mismatch.
>  Installed revision: '4.0.3.3:1'
>  Available revision: '4.0.4.2:1'.
>  Preparing upgrade.
>  Installing references (dependencies) of 'LibreOffice Help (it)' (libreoffice-help-it).
>  Package 'LibreOffice' (libreoffice): Already installed but version mismatch.
>  Installed revision: '4.0.3.3:1'
>  Available revision: '4.0.4.2:1'.
>  Preparing upgrade.
>  Installing references (dependencies) of 'LibreOffice' (libreoffice).
>  Installing 'LibreOffice' (libreoffice)...
>  Installing references (chained) of 'LibreOffice' (libreoffice).
>  Installation of references (chained) for 'LibreOffice' (libreoffice) failed. Installation of reference (chained) package 'LibreOffice Help (it)' (libreoffice-help-it) failed
>  Package 'LibreOffice' (libreoffice): Package installed but at least one chained package failed to install.
>  Processing (upgrade) of LibreOffice successful.
>  Installing 'LibreOffice Help (it)' (libreoffice-help-it)...
>  Package 'LibreOffice Help (it)' (libreoffice-help-it): Package and all chained packages installed successfully.
>  Processing (upgrade) of LibreOffice Help (it) successful.
> 
> OK, works. Ok, the 'depends' is totally optional... but... there's a
> better way to handle this things?
> 
> 
> Thanks.
> 

If Libreoffice-Help depends on Libreoffice, then you should not put a
dependency on the other way.

I have defined libreoffice in the other way, using an include:

<package id="libreoffice" ...
	<depends package-id="java7" />
	<include package-id="libreoffice-help" />

</package>
<package id="libreoffice-help" ...
	<depends package-id="libreoffice" />
</package>


In the profiles i put only a call to libreoffice, it seems to be working
as expected here @fcal

This was based on the documentation on:
http://wpkg.org/Package_dependencies

May be i should use chain and not include, but it works so i don't want
to make changes



Best Regards...


Carlos Pasqualini





More information about the wpkg-users mailing list