Comment 6 for bug 105764

Revision history for this message
Martin Pitt (pitti) wrote :

I fixed up a few remaining 'apport' prefix changes in the hook, gave it a better name, tested everything and committed:
  http://codebrowse.launchpad.net/~ubuntu-core-dev/apport/ubuntu/revision/martin.pitt%40ubuntu.com-20070412093504-06tyq5ntm7atqzil?start_revid=martin.pitt%40ubuntu.com-20070412095150-ujnli0m8e1uv2vid

The necessary /etc/python2.5/site.py diff now looks like this:

--- site.py.orig 2007-04-12 11:18:21.000000000 +0200
+++ site.py 2007-04-12 11:18:24.000000000 +0200
@@ -418,11 +418,11 @@
         del sys.setdefaultencoding
     # install the apport exception handler if available
     try:
- from apport import python_hook
+ import apport_python_hook
     except ImportError:
         pass
     else:
- python_hook.install()
+ apport_python_hook.install()

 main()