Comment 4 for bug 674046

Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

Barry, the second argument is a boolean indicating is the action was successful or not. For the aptdaemon backend its set to false if the use is not authorized to do the check. I dont know if we can get this information for the synaptic backend. We can assume that its always true for synaptic since it can only run as root. A possible patch would 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"]