Comment 4 for bug 981124

Revision history for this message
Michael Vogt (mvo) wrote :

I assume the issue here is that sometimes the value for "Space" is None, a workaround might be:

=== modified file 'aptdaemon/client.py'
--- aptdaemon/client.py 2012-05-08 22:44:15 +0000
+++ aptdaemon/client.py 2012-06-05 07:05:13 +0000
@@ -638,7 +638,7 @@
             self.download = value
             self.emit("download-changed", value)
         elif property_name == "Space":
- self.space = value
+ self.space = value or 0
             self.emit("space-changed", value)
         elif property_name == "HttpProxy":
             self.http_proxy = value

But I don't see in the code how this could happen that trans.space is None.