[gnome-software] plugins: Return the correct error if GetUpdates fails
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] plugins: Return the correct error if GetUpdates fails
- Date: Mon, 11 Mar 2013 20:10:55 +0000 (UTC)
commit 85a57e7a1b4113322141460265a1a38ecca89900
Author: Richard Hughes <richard hughsie com>
Date: Mon Mar 11 11:55:09 2013 +0000
plugins: Return the correct error if GetUpdates fails
src/plugins/gs-plugin-packagekit.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/plugins/gs-plugin-packagekit.c b/src/plugins/gs-plugin-packagekit.c
index 998779c..6e5347c 100644
--- a/src/plugins/gs-plugin-packagekit.c
+++ b/src/plugins/gs-plugin-packagekit.c
@@ -159,8 +159,10 @@ gs_plugin_add_installed (GsPlugin *plugin,
NULL, NULL,
cancellable,
error);
- if (results == NULL)
+ if (results == NULL) {
+ ret = FALSE;
goto out;
+ }
/* add results */
ret = gs_plugin_packagekit_add_results (plugin, list, results);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]