[gnome-software] trivial: Don't run the PackageKit distro upgrade in the unit tests
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] trivial: Don't run the PackageKit distro upgrade in the unit tests
- Date: Thu, 21 Apr 2016 22:06:57 +0000 (UTC)
commit 8fcf99dff8e084b2d643a092ae8173a2ba9649b4
Author: Richard Hughes <richard hughsie com>
Date: Thu Apr 21 22:00:14 2016 +0100
trivial: Don't run the PackageKit distro upgrade in the unit tests
src/plugins/gs-plugin-packagekit.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/plugins/gs-plugin-packagekit.c b/src/plugins/gs-plugin-packagekit.c
index ed97a3b..bcbe5ff 100644
--- a/src/plugins/gs-plugin-packagekit.c
+++ b/src/plugins/gs-plugin-packagekit.c
@@ -662,6 +662,11 @@ gs_plugin_app_upgrade_download (GsPlugin *plugin,
ProgressData data;
g_autoptr(PkResults) results = NULL;
+ /* only process this app if was created by this plugin */
+ if (g_strcmp0 (gs_app_get_management_plugin (app),
+ gs_plugin_get_name (plugin)) != 0)
+ return TRUE;
+
data.app = app;
data.plugin = plugin;
data.ptask = NULL;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]