[wpkg-users] Upgrade Skips Checks
Rainer Meier
r.meier at wpkg.org
Tue Feb 21 12:07:14 CET 2012
Hi Matthew,
On 21.02.2012 12:03, Matthew Bowman wrote:
> I originally thought the same thing, but running wpkg.js from the
> command line with /debug is how I discovered the -3 exit code. After
> adding<exit code="-3"> in<upgrade> ...</upgrade>, the<check.../> is
> executed, it succeeds, and the upgraded revision is stored in the local
> wpkg.xml db. The double upgrade/re-install only happens at the first
> reboot - subsequent reboots the package is verified as installed. This
> is why I think the<check../> stanzas only happen pre and post install
> but only post upgrade. I think it should also be pre upgrade.
You're right in your finding that by default pre-upgrade checks are not
performed. But this is done for good reason. See my other answer on it. You're
even allowed to change this behavior individually for each package as it
requires you to carefully design the package.
br,
Rainer
More information about the wpkg-users
mailing list