[gnome-software] Set NEEDS_REBOOT for systemd updates
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] Set NEEDS_REBOOT for systemd updates
- Date: Thu, 7 Apr 2016 17:58:31 +0000 (UTC)
commit e44ab97e3501cab2e83454de57957adbcc7ad867
Author: Richard Hughes <richard hughsie com>
Date: Thu Apr 7 18:57:29 2016 +0100
Set NEEDS_REBOOT for systemd updates
This means that a reboot is required for the update to be performed.
src/plugins/gs-plugin-systemd-updates.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/plugins/gs-plugin-systemd-updates.c b/src/plugins/gs-plugin-systemd-updates.c
index 705f50d..fcf5725 100644
--- a/src/plugins/gs-plugin-systemd-updates.c
+++ b/src/plugins/gs-plugin-systemd-updates.c
@@ -137,6 +137,7 @@ gs_plugin_add_updates (GsPlugin *plugin,
g_autoptr(GsApp) app = NULL;
g_auto(GStrv) split = NULL;
app = gs_app_new (NULL);
+ gs_app_add_quirk (app, AS_APP_QUIRK_NEEDS_REBOOT);
gs_app_set_management_plugin (app, "PackageKit");
gs_app_add_source_id (app, package_ids[i]);
split = pk_package_id_split (package_ids[i]);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]