Skip to content

Commit

Permalink
dnf5daemon: Add support for Group RPM package attribute
Browse files Browse the repository at this point in the history
This is needed for porting over dnfdragora from dnfdaemon.
  • Loading branch information
Conan-Kudo committed Jan 3, 2024
1 parent 8a797b9 commit d2c30fc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions dnf5daemon-server/package.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ const std::map<std::string, PackageAttribute> package_attributes{
{"sourcerpm", PackageAttribute::sourcerpm},
{"summary", PackageAttribute::summary},
{"url", PackageAttribute::url},
{"group", PackageAttribute::group},
{"license", PackageAttribute::license},
{"description", PackageAttribute::description},
{"files", PackageAttribute::files},
Expand Down Expand Up @@ -127,6 +128,9 @@ dnfdaemon::KeyValueMap package_to_map(
case PackageAttribute::url:
dbus_package.emplace(attr, libdnf_package.get_url());
break;
case PackageAttribute::group:
dbus_package.emplace(attr, libdnf_package.get_group());
break;
case PackageAttribute::license:
dbus_package.emplace(attr, libdnf_package.get_license());
break;
Expand Down
1 change: 1 addition & 0 deletions dnf5daemon-server/package.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ enum class PackageAttribute {
sourcerpm,
summary,
url,
group,
license,
description,
files,
Expand Down

0 comments on commit d2c30fc

Please sign in to comment.