Scott Reeves wrote:
The GM version of the gnome updater, gpk-update-icon, after applying a (set of) updates, gets in a state that it stops looking for new updates until it is restarted. So we need a patch that will lay down a new fixed gpk-update-icon that loops properly and we need to kill the old running gpk-update-icon instance and start the new fixed one.
When getting available updates if the updater finds a relevant patch marked with restart_suggested it immediately returns just that patch. After discussion it was decided that if it finds a restart_suggested patch it should return all relevant restart_suggested patches.
I don't understand why. That is the purpose of patches. If various packages need to be fixed in one, and then the package manager restarted, they should be all in the same patch or?
We have a patch (tagged with restart_suggested so it gets returned first) that fixes these code issues and restarts the currently running updater instance. It does this by laying down a restart-gpk-update-icon.sh file and running that shell file in the gnome-packagekit post install script. The restart-gpk-update-icon.sh file waits until the current update is finished and then restarts the updater.
The problem is when there are multiple restart_suggested patches available. The gnome-packagekit update needs to be done as the first update as if a different update is applied first, then the user will need to manually restart the updater (ie logout / login). There are now 2 restart_suggested patches (in the 11.0-test repo) and will probably be more in the future. So we are looking for a way to solve this given that the GM updater will just return the first restart_suggested patch it is given.
Why not group the packagekit code that returns all restart_suggested updates, and the applet update in the same patch and add a script to the updated package, that will be run after commit (ZYpp does this automatically, the rpm just needs to drop a script with the appropiate name) that restarts the applet? I don't see other way to fix this. I don't like the other workarounds to basically change the generic update code or the maintenance process just to make sure gnome-packagekit is fixed first. In case this is strictly necessary, the script can be added to all the current restart_needed patches. But that is also overkill. In that case, you could also show a message with the patch to tell to relogin. Duncan -- To unsubscribe, e-mail: zypp-devel+unsubscribe@opensuse.org For additional commands, e-mail: zypp-devel+help@opensuse.org