Modifications to the public API in dnf 5.2.0.0
This page lists the differences in the public API of DNF5 5.2 compared to the previous major version, DNF5 5.1.
Here’s the full diff showing the changes in the libdnf5 API.
Wrapping struct attributes
Public attributes in struct objects have been wrapped in getter and setter methods.
Before: bool ignore_case; Now: void set_ignore_case(bool); bool get_ignore_case() const;
libdnf5::GoalJobSettingslibdnf5::ResolveSpecSettingslibdnf5::repo::RepoCacheRemoveStatisticslibdnf5::rpm::Changelog
Dropping deprecated methods
Methods that were previously marked as deprecated have been removed or moved to the private section of the class.
libdnf5::create_file_logger(libdnf5::Base & base)(other variants still present)libdnf5::base::Base::load_config_from_file()libdnf5::base::Base::with_config_file_path()libdnf5::repo::Repo::add_libsolv_testcase()libdnf5::repo::Repo::add_rpm_package()libdnf5::repo::Repo::download_metadata()libdnf5::repo::Repo::load()libdnf5::repo::Repo::load_extra_system_repo()libdnf5::repo::Repo::set_substitutions()
Dropping unused or redundant items
Methods and objects that were unused or redundant have been removed.
libdnf5::base::Base::get_comps()libdnf5::comps::Compslibdnf5::comps::EnvironmentSacklibdnf5::comps::GroupSacklibdnf5::repo::Repo::fresh()(useis_expired()instead)
Other changes
libdnf5::advisory::AdvisoryQueryfilter_typeandfilter_severitymethods have the defaultcmp_typeIEXACT(wasEQbefore)
libdnf5::repo::RepoSackupdate_and_load_enabled_repos()is deprecated now,load_repos()should be used instead
libdnf5::LibraryVersionchanging version format
Before:
(major, minor, micro)Now:(prime, major, minor, micro)