I added a aptdaemon task as it appears that aptdaemon does not send a
"Finished" signal on authentication cancel.
We could workaround this via something like:
=== modified file 'softwarecenter/backend/installbackend_impl/aptd.py'
--- softwarecenter/backend/installbackend_impl/aptd.py 2012-04-10 14:52:59
+0000
+++ softwarecenter/backend/installbackend_impl/aptd.py 2012-04-17 09:25:02
+0000
@@ -945,6 +945,9 @@
self._on_trans_error(error, pkgname)
# on error we need to clean the pending purchases
self._clean_pending_purchases(pkgname)
+ # ensure the transaction is also canceled inside aptdaemon,
+ # this should actually happen inside aptdaemon I guess
+ trans.cancel()
# on success the pending purchase is cleaned when the package
# that was purchased finished installing
if trans.role == enums.ROLE_INSTALL_PACKAGES:
or by sending the signal after successful authentication. I will wait for
glatzors input if there
is a reason not to do it inside aptdaemon itself.
** Also affects: aptdaemon (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to software-center in Ubuntu.
https://bugs.launchpad.net/bugs/972710
Title:
Cancel an installation (deny to give the password) keep application's
icon in the launcher
Status in “aptdaemon” package in Ubuntu:
New
Status in “software-center” package in Ubuntu:
In Progress
Bug description:
Ubuntu 12.04 beta 32bits
All packages up to date (03 april)
Open the software center
Select an app (me : pitivi)
Ask to install
When a dialog ask you your passwd, close the dialog : the installation is
cancelled
=> The application's icon keep displayed in the bottom of the launcher
!
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/aptdaemon/+bug/972710/+subscriptions
--
Mailing list: https://launchpad.net/~desktop-packages
Post to : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help : https://help.launchpad.net/ListHelp