Skip to content

Commit

Permalink
SystemUpdate: include security info in dbus (#120)
Browse files Browse the repository at this point in the history
  • Loading branch information
danirabbit authored Jan 28, 2024
1 parent b2bb693 commit dc3ee28
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/Backends/SystemUpdate.vala
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ public class SettingsDaemon.Backends.SystemUpdate : Object {
public struct UpdateDetails {
string[] packages;
int size;
Pk.Info[] info;
}

private const string NOTIFICATION_ID = "system-update";
Expand All @@ -47,7 +48,8 @@ public class SettingsDaemon.Backends.SystemUpdate : Object {

update_details = {
{},
0
0,
{}
};

task = new Pk.Task () {
Expand Down Expand Up @@ -100,14 +102,17 @@ public class SettingsDaemon.Backends.SystemUpdate : Object {
}

string[] package_names = {};
Pk.Info[] package_info = {};

foreach (var package in available_updates.get_array ()) {
package_names += package.get_name ();
package_info += package.get_info ();
}

update_details = {
package_names,
0 //FIXME: Is there a way to get update size from PackageKit
0, //FIXME: Is there a way to get update size from PackageKit
package_info
};

if (notify) {
Expand Down

0 comments on commit dc3ee28

Please sign in to comment.