[gnome-software] fwupd plugin: Don't try to install non-firmware updates
- From: Kalev Lember <klember src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] fwupd plugin: Don't try to install non-firmware updates
- Date: Mon, 1 Jun 2015 15:39:23 +0000 (UTC)
commit c33f636c16a561481e7fb278fa3c5d185cf5ebdb
Author: Kalev Lember <kalevlember gmail com>
Date: Sat May 30 00:17:56 2015 +0200
fwupd plugin: Don't try to install non-firmware updates
src/plugins/gs-plugin-fwupd.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/plugins/gs-plugin-fwupd.c b/src/plugins/gs-plugin-fwupd.c
index bf46bac..ac50853 100644
--- a/src/plugins/gs-plugin-fwupd.c
+++ b/src/plugins/gs-plugin-fwupd.c
@@ -682,6 +682,10 @@ gs_plugin_app_upgrade (GsPlugin *plugin,
const gchar *device_id;
const gchar *filename;
+ /* only process this app if was created by this plugin */
+ if (g_strcmp0 (gs_app_get_management_plugin (app), "fwupd") != 0)
+ return TRUE;
+
filename = gs_app_get_source_id_default (app);
device_id = gs_app_get_metadata_item (app, "fwupd::DeviceID");
if (filename == NULL || device_id == NULL) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]