Provide an option to cancel a .deb install in progress |
|||
Issue descriptionWe want to provide a Cancel button on the notification during Debian package install from .deb files. First thing is to verify how this functionality actually works in PackageKit (there is a Cancel call for transactions) to see if that actually rolls back what has happened (they call it a transaction, so you would expect that) or if it's actually a hard stop with no rollback. If it's the latter then we won't proceed, but if it's the former than we can do it.
,
Jul 26
I did a test with this today and I don't think we should implement this option. If you execute Cancel on a PackageKit transaction in progress...it just totally stops the operation where it is at with no rollback whatsoever. You can't even do a remove on the package after that...you need to do a 'sudo dpkg --configure -a' to fix the problem (which ends up completing the install) and then you can remove it after that. Also if we allow cancel, dpkg is in a broken state, blocking all other installs until 'sudo dpkg --configure -a' is run. There doesn't seem to be a useful way of implementing this that doesn't cause the Cancel operation to be anything other than allowing the install to complete and then doing an uninstall at that point (which isn't really Cancel..and if we can't do a real Cancel, we shouldn't show that button).
,
Jul 27
Thanks for investigating Jeff, +Sudha as FYI. |
|||
►
Sign in to add a comment |
|||
Comment 1 by jkardatzke@chromium.org
, Jul 23