[wpkg-users] packages not installing/upgrading
Carlos R. Pasqualini
pasqualinic at fcal.uner.edu.ar
Tue Sep 11 01:42:44 CEST 2012
El mar, 11-09-2012 a las 09:32 +1000, Patrick CAHILL escribió:
> Carlos,
> can you try something for me?
> In your LibreOffice Upgrade definition, replace
> 'versiongreaterorequal' with 'versionsmallerthan'
>
>
> The way I read the documentation is...
>
>
> IF [the_version_installed] IS [condition] [the_version_packaged]
> THEN install/upgrade
>
>
> So your error is actually logically correct.
> If [3.5] is [Greater Than or Equal To] [3.6] then Upgrade
>
>
> Your return code is -1 which in a tri-state (less, equal, greater)
> like this is usually lessthan, which is correct.
> (A less than B = -1, A equal B = 0, A greater than B = 1)
>
>
> The reason I say use ''versionsmallerthan' rather than
> 'versionlessorequal' is that I think you only want to upgrade if the
> version installed is smaller, if its the same as is in the package
> then you dont want to install again.
>
>
> Even if I am wrong, its only a quick one word change.
>
I will give it a try tomorrow, but that doesn't have any sense; we are
talking about the 'check' condition, it is supposed to check if the
package is already installed/upgraded and not if WPKG needs to do some
work...
See http://wpkg.org/Packages.xml#Check_conditions_.2F_check_type says:
---
Of course it would be unwise to launch the installer if the software is
already installed. That's why there are "check conditions".
The check conditions are also used after the installer has finished to
verify that the software has actually been successfully installed.
---
so i'm making the check condition against the new version of the
package, not the older one; i want to have installed in this system this
version or any greater version (if it was installed manually)
Best Regards
More information about the wpkg-users
mailing list