Skip to content

Commit

Permalink
versionlock: Tag new API with @SInCE 5.1.13
Browse files Browse the repository at this point in the history
  • Loading branch information
m-blaha authored and jan-kolarik committed Feb 14, 2024
1 parent e938c70 commit e3e8175
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions include/libdnf5/rpm/package_query.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -718,6 +718,7 @@ class PackageQuery : public PackageSet {
/// Filter out versionlock excluded packages.
///
/// The packages versions excluded by versionlock are removed from the query.
/// @since 5.1.13
void filter_versionlock();

private:
Expand Down
6 changes: 6 additions & 0 deletions include/libdnf5/rpm/package_sack.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -148,24 +148,30 @@ class PackageSack {


/// Returns versionlock configuration
/// @since 5.1.13
VersionlockConfig get_versionlock_config() const;

/// Returns versionlock excluded package set
/// @since 5.1.13
const PackageSet get_versionlock_excludes();

/// Add package set to versionlock excluded packages
/// @param excludes: packages to add to excludes
/// @since 5.1.13
void add_versionlock_excludes(const PackageSet & excludes);

/// Remove package set from versionlock excluded packages
/// @param excludes: packages to remove from excludes
/// @since 5.1.13
void remove_versionlock_excludes(const PackageSet & excludes);

/// Resets versionlock excluded packages to a new value
/// @param excludes: packages to exclude
/// @since 5.1.13
void set_versionlock_excludes(const PackageSet & excludes);

/// Clear versionlock excluded packages
/// @since 5.1.13
void clear_versionlock_excludes();

rpm::Package get_running_kernel();
Expand Down
3 changes: 3 additions & 0 deletions include/libdnf5/rpm/versionlock_config.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ namespace libdnf5::rpm {
/// Each condition consist of three parts: key, comparison operator, and value.
/// Key can be one of "epoch", "evr", "arch".
/// Supported comparison operators are "<", "<=", "=", ">=", ">", "!=".
/// @since 5.1.13
class VersionlockCondition {
public:
enum class Keys { EPOCH, EVR, ARCH };
Expand Down Expand Up @@ -78,6 +79,7 @@ class VersionlockCondition {
/// One versionlock configuration file entry. It consists of the
/// package name and a set of conditions. All conditions must be true
/// for package version to get locked.
/// @since 5.1.13
class VersionlockPackage {
public:
/// Creates an instance of `VersionlockPackage` class specifying the
Expand Down Expand Up @@ -119,6 +121,7 @@ class VersionlockPackage {


/// Class contains parsed versionlock configuration file.
/// @since 5.1.13
class VersionlockConfig {
public:
/// Get list of configured versionlock entries.
Expand Down

0 comments on commit e3e8175

Please sign in to comment.