[wpkg-users] packages not installing/upgrading

Patrick CAHILL pjcah0 at eq.edu.au
Tue Sep 11 01:32:18 CEST 2012


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.

-Pat Cahill



On 11/09/12, "Carlos R. Pasqualini" <pasqualinic at fcal.uner.edu.ar> wrote:
> 
> El vie, 31-08-2012 a las 23:53 +0200, Stefan Pendl escribió:
> > Am 31.08.2012 23:45, schrieb Carlos R. Pasqualini:
> > >
> > > Today i found an error on a package description, i suspect that type of
> > > errors are the source of troubles, but i need to debug and find others,
> > > and the output of /debug apparently is not showing all the info i need
> > > to understand the trouble.
> > >
> > 
> > It is all about reading the log file, you just need to make sure the log 
> > level is set to 0xFF.
> > 
> > You could post the offending portion of the log too.
> > 
> 
> 
> Here is another log, again with Libre Office
> 
> What do you think?
> where should i search for an error?
> it does not even try to execute the install command, it has no sense to
> me.
> 
> 
> Thanks for your time!
> 
> 
> 2012-09-10 18:56:00, DEBUG   : Reading variables from hosts[s]
> 2012-09-10 18:56:00, DEBUG   : Reading variables from profile[s]
> 2012-09-10 18:56:00, DEBUG   : Reading variables from package
> 'LibreOffice'.
> 2012-09-10 18:56:00, DEBUG   : Got variable 'shortversion' of value
> '3.6.1'
> 2012-09-10 18:56:00, DEBUG   : Got variable 'PKG_VERSION' of value '%
> shortversion%-0'
> 2012-09-10 18:56:00, DEBUG   : Got variable 'PKG_SOURCE' of value '%
> SOFTWARE%\libreoffice\3.6'
> 2012-09-10 18:56:00, DEBUG   : Setting variable: 'SOFTWARE=\\capibara
> \repositorio\software'.
> 2012-09-10 18:56:00, DEBUG   : Setting variable: 'SOFTWARE=\\capibara
> \repositorio\software'.
> 2012-09-10 18:56:00, DEBUG   : Setting variable: 'shortversion=3.6.1'.
> 2012-09-10 18:56:00, DEBUG   : Setting variable: 'PKG_VERSION=%
> shortversion%-0'.
> 2012-09-10 18:56:00, DEBUG   : Setting variable: 'PKG_SOURCE=%SOFTWARE%
> \libreoffice\3.6'.
> 2012-09-10 18:56:00, DEBUG   : Install type: downgrade
> 2012-09-10 18:56:00, DEBUG   : Fetched 0 downgrade command(s).
> 2012-09-10 18:56:00, DEBUG   : Checking existence of package:
> LibreOffice
> 2012-09-10 18:56:00, DEBUG   : Reading variables from hosts[s]
> 2012-09-10 18:56:00, DEBUG   : Reading variables from profile[s]
> 2012-09-10 18:56:00, DEBUG   : Reading variables from package
> 'LibreOffice'.
> 2012-09-10 18:56:00, DEBUG   : Got variable 'shortversion' of value
> '3.6.1'
> 2012-09-10 18:56:00, DEBUG   : Got variable 'PKG_VERSION' of value '%
> shortversion%-0'
> 2012-09-10 18:56:00, DEBUG   : Got variable 'PKG_SOURCE' of value '%
> SOFTWARE%\libreoffice\3.6'
> 2012-09-10 18:56:00, DEBUG   : Setting variable: 'SOFTWARE=\\capibara
> \repositorio\software'.
> 2012-09-10 18:56:00, DEBUG   : Setting variable: 'SOFTWARE=\\capibara
> \repositorio\software'.
> 2012-09-10 18:56:00, DEBUG   : Setting variable: 'shortversion=3.6.1'.
> 2012-09-10 18:56:00, DEBUG   : Setting variable: 'PKG_VERSION=%
> shortversion%-0'.
> 2012-09-10 18:56:00, DEBUG   : Setting variable: 'PKG_SOURCE=%SOFTWARE%
> \libreoffice\3.6'.
> 2012-09-10 18:56:01, DEBUG   : Uninstall entry 'LibreOffice 3.5' matches
> expression 'LibreOffice .+'.
> 2012-09-10 18:56:01, DEBUG   : Found version of 'LibreOffice .+' at HKLM
> \SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall
> \{EF790F1C-CB0C-4B95-8C54-60783F3B6661}: 3.5.4.2|Comparing to expected
> version: %shortversion%.
> 2012-09-10 18:56:01, DEBUG   : Comparing version: '3.5.4.2' <=> '3.6.1'.
> 2012-09-10 18:56:01, DEBUG   : Comparing version fragments: '3' <=> '3'
> 2012-09-10 18:56:01, DEBUG   : Comparing version fragments: '5' <=> '6'
> 2012-09-10 18:56:01, DEBUG   : Comparing uninstall version '3.5.4.2' to
> expected version '3.6.1' using condition 'versiongreaterorequal'
> returned -1.
> 2012-09-10 18:56:01, DEBUG   : Uninstall version check for package
> 'LibreOffice .+' returned false for operation type
> versiongreaterorequal.
> 2012-09-10 18:56:01, DEBUG   : Searching for previously executed checks
> with attributes type='uninstall', condition='versiongreaterorequal',
> path='LibreOffice .+', value='%shortversion%'
> 2012-09-10 18:56:01, DEBUG   : Unable to find any previously executed
> checks with these attributes.
> 2012-09-10 18:56:01, DEBUG   : Saving unsorted settings to 'C:\WINDOWS
> \system32\wpkg.xml'.false
> 2012-09-10 18:56:01, DEBUG   : Saving XML : C:\WINDOWS\system32\wpkg.xml
> 2012-09-10 18:56:01, ERROR   : Could not process (downgrade)
> LibreOffice.|Failed checking after installation.
> 2012-09-10 18:56:01, DEBUG   : Cleaning up temporary downloaded files
> 2012-09-10 18:56:01, DEBUG   : Restoring previous environment.
> 2012-09-10 18:56:01, DEBUG   : Reading variables from hosts[s]
> 
> 
> 
> 
> -------------------------------------------------------------------------
> wpkg-users mailing list archives >> http://lists.wpkg.org/pipermail/wpkg-users/
> _______________________________________________
> wpkg-users mailing list
> wpkg-users at lists.wpkg.org
> http://lists.wpkg.org/mailman/listinfo/wpkg-users
> 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wpkg.org/pipermail/wpkg-users/attachments/20120911/9dd1dbc9/attachment-0002.html>


More information about the wpkg-users mailing list