Blame SOURCES/gnome-software-3.36.1-unrelated-refs.patch

78044d
diff -up gnome-software-3.36.1/plugins/flatpak/gs-plugin-flatpak.c.unrelated-refs gnome-software-3.36.1/plugins/flatpak/gs-plugin-flatpak.c
78044d
--- gnome-software-3.36.1/plugins/flatpak/gs-plugin-flatpak.c.unrelated-refs	2020-10-09 14:07:16.407235531 -0400
78044d
+++ gnome-software-3.36.1/plugins/flatpak/gs-plugin-flatpak.c	2020-10-09 14:08:48.775544689 -0400
78044d
@@ -696,6 +696,11 @@ gs_plugin_app_remove (GsPlugin *plugin,
78044d
 		gs_flatpak_error_convert (error);
78044d
 		return FALSE;
78044d
 	}
78044d
+
78044d
+	/* add to the transaction cache for quick look up -- other unrelated
78044d
+	 * refs will be matched using gs_plugin_flatpak_find_app_by_ref() */
78044d
+	gs_flatpak_transaction_add_app (transaction, app);
78044d
+
78044d
 	ref = gs_flatpak_app_get_ref_display (app);
78044d
 	if (!flatpak_transaction_add_uninstall (transaction, ref, error)) {
78044d
 		gs_flatpak_error_convert (error);
78044d
@@ -899,6 +904,10 @@ gs_plugin_flatpak_update (GsPlugin *plug
78044d
 			gs_flatpak_error_convert (error);
78044d
 			return FALSE;
78044d
 		}
78044d
+
78044d
+		/* add to the transaction cache for quick look up -- other unrelated
78044d
+		 * refs will be matched using gs_plugin_flatpak_find_app_by_ref() */
78044d
+		gs_flatpak_transaction_add_app (transaction, app);
78044d
 	}
78044d
 
78044d
 	/* run transaction */