AdvisoryQuery

class libdnf5.advisory.AdvisoryQuery(*args)

AdvisoryQuery is the only way how to access advisories. It is constructed using Base and filled with advisories from enabled repositories in its RepoSack.

filter_name(*args)
filter_packages(*args)

Filter out advisories that don’t contain at least one AdvisoryPackage that has a counterpart Package in package_set such that they have matching name and architecture and also their epoch-version-release complies to cmp_type.

Parameters:
  • package_set (libdnf5::rpm::PackageSet) – libdnf5::rpm::PackageSet used when filtering.

  • cmp_type (int, optional) – Condition to fulfill when comparing epoch-version-release of packages.

filter_reference(*args)
filter_severity(*args)
filter_type(*args)
get_advisory_packages_sorted(*args)

Get std::vector of AdvisoryPackages present in advisories from query. Each AdvisoryPackage is returned only if it has a counterpart Package in package_set such that they have matching name and architecture and also their epoch-version-release complies to cmp_type. AdvisoryPackages are sorted in the std::vector by Name, Arch and EVR.

Parameters:
  • package_set (libdnf5::rpm::PackageSet) – libdnf5::rpm::PackageSet used when filtering.

  • cmp_type (int, optional) – Condition to fulfill when comparing epoch-version-release of packages.

Return type:

std::vector< libdnf5::advisory::AdvisoryPackage,std::allocator< libdnf5::advisory::AdvisoryPackage > >

Returns:

std::vector of AdvisoryPackages

thisown