[wpkg-users] [Bug 97] wpkg trapped in a loop after unplanned reboot during uninstall
bugzilla-daemon at bugzilla.wpkg.org
bugzilla-daemon at bugzilla.wpkg.org
Fri Feb 15 12:05:57 CET 2008
http://bugzilla.wpkg.org/show_bug.cgi?id=97
--- Comment #1 from Rainer Meier <skybeam at users.sourceforge.net> 2008-02-15 12:05:52 ---
> I've installed 28 packages on a machine in one go, no problem so far. Then I
> removed all those packages from the profile again and after a reboot WPKG tried
> to uninstall all the installed software, no problem so far.
OK, clear.
> But one of the packages seems to have initiated an immediate reboot and WPKG
> didn't have a chance to write the local XML file. After this reboot WPKG is
> trying to reinstall all packages for some reason before it again tries to
> uninstall all of them. Then the immediate reboot from one of the packages is
> triggered and WPKG has no chance to write the local XML file again. And the fun
> begins again... There's no way to escape this circle of death.
OK, I see the problem here.
> Is there any switch I missed that would fix this? Or is it actually a bug?
> Wouldn't it be better if WPKG updates the local XML after every processed
> package?
Nope, you did not miss a switch - but you could probably try the /noreboot flag
to avoid the endless reboot loop - but this is just a work-around.
I will explain why this happens.
WPKG does not remove a package from the local wpkg.xml before doing a required
reboot. This is done on purpose since the the package is only fully uninstalled
after that reboot - so the final checks will have to be done after reboot.
What goes wrong here is that it seems that also the packages uninstalled before
the "guilty" one are not removed from wpkg.xml. In such case your PC reboots
and then continues the synchronization. As the packages already removed are
still within the local wpkg.xml it tries to uninstall them once again. Due to
the new "upgrade-before-remove" feature they will be installed again - and then
of course the whole circle starts from the beginning.
The bug here is that WPKG should not remove the package which caused the reboot
from wpkg.xml but make sure it at least removes the package already
successfully uninstalled from wpkg.xml.
I will try to fix this ASAP - if you can please keep your test system. I will
publish a fix which you can test probably.
--
Configure bugmail: http://bugzilla.wpkg.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
More information about the wpkg-users
mailing list