[gnome-software] packagekit: Never call GetDetails when there are no source IDs
- From: Kalev Lember <klember src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] packagekit: Never call GetDetails when there are no source IDs
- Date: Tue, 6 Feb 2018 13:23:49 +0000 (UTC)
commit 81379d56cc7966c88a48e01ab8d92bcf74ccf0fa
Author: Kalev Lember <klember redhat com>
Date: Tue Feb 6 14:20:36 2018 +0100
packagekit: Never call GetDetails when there are no source IDs
Based on a downstream patch by Richard Hughes <richard hughsie com>
https://bugzilla.redhat.com/show_bug.cgi?id=1445651
plugins/packagekit/gs-plugin-packagekit-refine.c | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/plugins/packagekit/gs-plugin-packagekit-refine.c
b/plugins/packagekit/gs-plugin-packagekit-refine.c
index f2746384..0a5f9db0 100644
--- a/plugins/packagekit/gs-plugin-packagekit-refine.c
+++ b/plugins/packagekit/gs-plugin-packagekit-refine.c
@@ -312,6 +312,8 @@ gs_plugin_packagekit_refine_details2 (GsPlugin *plugin,
g_ptr_array_add (package_ids, g_strdup (package_id));
}
}
+ if (package_ids->len == 0)
+ return TRUE;
g_ptr_array_add (package_ids, NULL);
data.plugin = plugin;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]