Attaching a branch that fixes this.  I note, however, that this is not a
very distro-agnostic way to handle it.  Perhaps a /var/lib/apport file
that /etc/init.d/apport modifies would be "better"?

=== modified file 'apport_python_hook.py'
--- apport_python_hook.py       2008-04-11 21:04:30 +0000
+++ apport_python_hook.py       2008-04-26 01:06:30 +0000
@@ -30,6 +30,15 @@
     # import locally here so that there is no routine overhead on python
     # startup time - only when a traceback occurs will this trigger.
     try:
+        # test if apport is enabled
+        enabled=1
+        try:
+            execfile('/etc/default/apport')
+        except:
+            pass
+        if not enabled:
+            return
+
         # ignore 'safe' exit types.
         if exc_type in (KeyboardInterrupt, ):
             return

-- 
apport_python_hook.py doesn't check to see if apport is enabled
https://bugs.launchpad.net/bugs/222260
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to