home *** CD-ROM | disk | FTP | other *** search
- # Source Generated with Decompyle++
- # File: in.pyc (Python 2.6)
-
- import os
- import computerjanitor
- import computerjanitorapp
- _ = computerjanitorapp.setup_gettext()
-
- class AutoRemovablePlugin(computerjanitor.Plugin):
- '''Plugin for finding packages apt says are removable.
-
- Automatically removable packages are those that apt installed because
- they were dependencies of something else, but which the user never
- asked for specifically, and which further are no longer used by
- anything, hopefully also not by the user.
-
- '''
- description = _('Package was installed because another package required it, but now nothing requires it anymore.')
-
- def get_cruft(self):
- for pkg in self.app.apt_cache:
- if pkg.isAutoRemovable:
- yield computerjanitor.PackageCruft(pkg, self.description)
- continue
-
-
-
-