home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2010 May / Mac Life Ubuntu.iso / casper / filesystem.squashfs / usr / share / computerjanitor / plugins / autoremoval_plugin.pyc (.txt) < prev    next >
Encoding:
Python Compiled Bytecode  |  2009-04-20  |  1.3 KB  |  28 lines

  1. # Source Generated with Decompyle++
  2. # File: in.pyc (Python 2.6)
  3.  
  4. import os
  5. import computerjanitor
  6. import computerjanitorapp
  7. _ = computerjanitorapp.setup_gettext()
  8.  
  9. class AutoRemovablePlugin(computerjanitor.Plugin):
  10.     '''Plugin for finding packages apt says are removable.
  11.     
  12.     Automatically removable packages are those that apt installed because
  13.     they were dependencies of something else, but which the user never
  14.     asked for specifically, and which further are no longer used by
  15.     anything, hopefully also not by the user.
  16.     
  17.     '''
  18.     description = _('Package was installed because another package required it, but now nothing requires it anymore.')
  19.     
  20.     def get_cruft(self):
  21.         for pkg in self.app.apt_cache:
  22.             if pkg.isAutoRemovable:
  23.                 yield computerjanitor.PackageCruft(pkg, self.description)
  24.                 continue
  25.         
  26.  
  27.  
  28.