pkgcore.pkgsets.glsa module

Gentoo Linux Security Advisories (GLSA) support

class pkgcore.pkgsets.glsa.GlsaDirSet(src)[source]

Bases: object

generate a pkgset based on GLSA’s distributed via a directory.

(rsync tree is the usual source.)

METADATA_FILES = frozenset({'Manifest', 'Manifest.files.gz', 'timestamp.chk', 'timestamp.commit'})
generate_intersects_from_pkg_node(pkg_node, tag=None)[source]
generate_restrict_from_range(node, negate=False)[source]
iter_vulnerabilities()[source]

generator yielding each GLSA restriction

op_translate = {'eq': '=', 'ge': '>=', 'gt': '>', 'le': '<=', 'lt': '<'}
pkg_grouped_iter(sorter=None)[source]

yield GLSA restrictions grouped by package key

Parameters:

sorter – must be either None, or a comparison function

pkgcore_config_type = <pkgcore.config.hint.ConfigHint object>
class pkgcore.pkgsets.glsa.SecurityUpgrades(ebuild_repo, vdb, arch)[source]

Bases: object

Set of packages for available security upgrades.

pkgcore_config_type = <pkgcore.config.hint.ConfigHint object>