[gnome-software] Don't error out for over 500 results



commit e770c15a2cd8be84ea0b418d4274de6da74e0b11
Author: Kalev Lember <klember redhat com>
Date:   Wed Oct 25 12:43:02 2017 +0200

    Don't error out for over 500 results
    
    We can legitimately get more than 500 when updating a large number of packages
    and then showing the offline update results.
    
    This commit drops the failure path for >500 results; for cases where
    performance is critical (search), the results are already truncated in
    gs_plugin_loader_job_sorted_truncation_again() and for other cases we
    can just keep on going.
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1496489

 lib/gs-plugin-loader.c |    9 ---------
 1 files changed, 0 insertions(+), 9 deletions(-)
---
diff --git a/lib/gs-plugin-loader.c b/lib/gs-plugin-loader.c
index 3820c2f..8e0e7a0 100644
--- a/lib/gs-plugin-loader.c
+++ b/lib/gs-plugin-loader.c
@@ -3338,15 +3338,6 @@ gs_plugin_loader_process_thread_cb (GTask *task,
                }
        }
 
-       /* too many */
-       if (gs_app_list_length (list) > 500) {
-               g_task_return_new_error (task,
-                                        GS_PLUGIN_ERROR,
-                                        GS_PLUGIN_ERROR_NOT_SUPPORTED,
-                                        "too many results returned");
-               return;
-       }
-
        /* filter duplicates with priority, taking into account the source name
         * & version, so we combine available updates with the installed app */
        gs_app_list_filter (list, gs_plugin_loader_app_set_prio, plugin_loader);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]