home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2010 May / Mac Life Ubuntu.iso / casper / filesystem.squashfs / usr / share / apport / general-hooks / automatix.pyc (.txt) < prev    next >
Encoding:
Python Compiled Bytecode  |  2009-10-12  |  1.4 KB  |  28 lines

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