[wpkg-users] fix postponed reboot (with patch)
Christian
chanlists at googlemail.com
Sun May 31 21:56:00 CEST 2015
> we have a few packages where the checks will only succeed after a
> reboot. Presently, if all package installation commands succeed, but the
> check fails directly afterwards, and the package or one of the install
> commands is marked for a postponed reboot, wpkg will log this, but not
> actually schedule a reboot. I am attaching a proposed patch to remedy
> this behavior. Please feel free to comment. Kind regards,
>
> Christian
Sorry, small mistake in patch. Here is a better one. Kind regards,
Christian
-------------- next part --------------
--- wpkg_orig.js 2015-05-14 23:31:39.000000000 +0200
+++ wpkg.js 2015-05-31 19:48:26.000000000 +0200
@@ -5662,6 +5662,7 @@
} else if (rebootPostponed || rebootAttr == "postponed") {
warning("Package processing (" + installType + ") failed for package " +
packageName + ".\nHowever the package schedules a postponed reboot.");
+ setPostponedReboot(true);
} else {
// package installation failed
var failMessage = "Could not process (" + installType + ") " + packageName + ".\n" +
@@ -6766,6 +6767,7 @@
} else if (rebootPostponed || rebootAttr == "postponed") {
warning("Package processing (remove) failed for package " +
packageName + ".\nHowever the package schedules a postponed reboot.");
+ setPostponedReboot(true);
} else {
// package installation failed
success = false;
More information about the wpkg-users
mailing list