[gnome-software/gnome-3-26] 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/gnome-3-26] packagekit: Never call GetDetails when there are no source IDs
- Date: Thu, 8 Feb 2018 11:53:14 +0000 (UTC)
commit 2c1ae00bcb523fd181a203046dc3183005aa398f
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 0f9574a1..7143c147 100644
--- a/plugins/packagekit/gs-plugin-packagekit-refine.c
+++ b/plugins/packagekit/gs-plugin-packagekit-refine.c
@@ -548,6 +548,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.app = NULL;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]