File gnome-packagekit-drop-NEWEST-on-get-updates.patch of Package gnome-packagekit
From a8d6a3814dae67932b81dcf4c4b992461a6bce7d Mon Sep 17 00:00:00 2001
From: Jonathan Kang <jonathankang@gnome.org>
Date: Mon, 13 Sep 2021 13:55:50 +0800
Subject: [PATCH] Don't use PK_FILTER_ENUM_NEWEST filter when getting updates
---
src/gpk-update-viewer.c | 7 -------
1 file changed, 7 deletions(-)
diff --git a/src/gpk-update-viewer.c b/src/gpk-update-viewer.c
index 1f02a389..76bde16b 100644
--- a/src/gpk-update-viewer.c
+++ b/src/gpk-update-viewer.c
@@ -2423,13 +2423,6 @@ gpk_update_viewer_get_new_update_array (void)
text = g_strdup_printf ("<big><b>%s</b></big>", _("Checking for updates…"));
gtk_label_set_label (GTK_LABEL(widget), text);
- /* only show newest updates? */
- ret = g_settings_get_boolean (settings, GPK_SETTINGS_ONLY_NEWEST);
- if (ret) {
- g_debug ("only showing newest updates");
- filter = pk_bitfield_from_enums (PK_FILTER_ENUM_NEWEST, -1);
- }
-
/* get new array */
pk_client_get_updates_async (PK_CLIENT(task), filter, cancellable,
(PkProgressCallback) gpk_update_viewer_progress_cb, NULL,
--
2.31.1