On Mon, Feb 18, 2013 at 2:31 PM, Cristian Rodríguez <crrodriguez@opensuse.org> wrote:
You could say, apply offline when any of the packages are marked needs-blah-restart. It would be even more preferrable to stop X, apply the update (invoking the update-system.target on systemd) and then restart X, when the only thing that's flagged for restart is the desktop.
I hope you see that what you are proposing makes things even more complicated than just making it all offline.
As always, convenience to the user is inconvenience to the developer. Yes, it is more complicated. But it should only stand on already provided tools, so it's not as complicated as it seems. I checked zypper, and sadly, as you said, zypper ps only works after the fact. Bummer. Anyway, this still applies to marked updates. There's no need to propose an offline, rebooting update if there's no restart mark on the patches involved. And, zypper ps could conceivably be extended to also check for would-be restarts (you could give it a list of packages, and assuming every file on those packages got modified, it could tell you want would need to be restarted), although that's a bigger proposition. But just by checking patch flags you'd have a huge improvement. -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org