pkgcheck.checks.cleanup module¶
- class pkgcheck.checks.cleanup.RedundantVersion(slot, later_versions, **kwargs)[source]¶
Bases:
VersionResult
,Info
Redundant version(s) of a package in a specific slot.
- property desc¶
Result description.
- name = 'RedundantVersion'¶
- class pkgcheck.checks.cleanup.RedundantVersionCheck(*args, profile_addon)[source]¶
Bases:
Check
Scan for overshadowed package versions.
Scan for versions that are likely shadowed by later versions from a keywords standpoint (ignoring live packages that erroneously have keywords).
Example: pkga-1 is keyworded amd64, pkga-2 is amd64. pkga-1 can potentially be removed.
- known_results = frozenset({<class 'pkgcheck.checks.cleanup.RedundantVersion'>})¶
- static mangle_argparser(parser)[source]¶
Add extra options and/or groups to the argparser.
This hook is always triggered, even if the checker is not activated (because it runs before the commandline is parsed).
- Parameters:
parser – an C{argparse.ArgumentParser} instance.
- required_addons = (<class 'pkgcheck.addons.profiles.ProfileAddon'>,)¶
- scope = <PackageScope desc='package' @0x7fc9bedc8f50>¶