Barry, the second argument of the signal indicates whether the action is
authorized or not. For the synaptic backend it must be True because
synaptic must be run as root to perform the update and is always
authorized. I can't think of a way to know if synaptic has been
authorized or not to do the check.

I think your fix is incorrect because you set the second argument to 0
which is "False", and the package list won't be refreshed. Unless my
boolean math is wrong, the patch should be :

--- 
/usr/lib/python2.7/dist-packages/UpdateManager/backend/InstallBackendSynaptic.py
 2010-09-07 17:30:58.000000000 +0200
+++ UpdateManager/backend/InstallBackendSynaptic.py 2010-11-11 
19:24:34.000000000 +0100
@@ -34,7 +34,7 @@
         action, tempf = data
         if tempf:
             tempf.close()
- self.emit("action-done", action)
+ self.emit("action-done", action,True)

     def update(self):
         opt = ["--update-at-startup"]


Please also consider bug 674175, which prevent the aptdaemon backend to be 
loaded in Natty. 
Thanks.

-- 
update-manager crashed with TypeError in _on_synaptic_exit()
https://bugs.launchpad.net/bugs/631328
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to