home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2010 May / Mac Life Ubuntu.iso / casper / filesystem.squashfs / usr / share / apport / general-hooks / automatix.py next >
Encoding:
Python Source  |  2009-09-25  |  1.1 KB  |  27 lines

  1. '''Do not send any crashes when automatix is or was installed, since it usually
  2. causes a mess in the system and causes a lot of package installation failures.
  3.  
  4. Copyright (C) 2007 Canonical Ltd.
  5. Author: Martin Pitt <martin.pitt@ubuntu.com>
  6.  
  7. This program is free software; you can redistribute it and/or modify it
  8. under the terms of the GNU General Public License as published by the
  9. Free Software Foundation; either version 2 of the License, or (at your
  10. option) any later version.  See http://www.gnu.org/copyleft/gpl.html for
  11. the full text of the license.
  12. '''
  13.  
  14. import apport.packaging
  15.  
  16. def add_info(report):
  17.     try:
  18.         if apport.packaging.get_version('automatix') or \
  19.             apport.packaging.get_version('automatix2') or \
  20.             apport.packaging.get_version('ultamatix'):
  21.             report['UnreportableReason'] = 'You have installed automatix or ultamatix on your \
  22. system. This is known to cause a lot of instability, thus problem reports \
  23. will not be sent to the %s developers.' % report.get('DistroRelease',
  24.     'distribution').split()[0]
  25.     except ValueError, e:
  26.         return
  27.