Blame SOURCES/0003-hide-some-errors.patch

81aec0
diff -up gnome-software-3.36.1/lib/gs-plugin-loader.c.12 gnome-software-3.36.1/lib/gs-plugin-loader.c
81aec0
--- gnome-software-3.36.1/lib/gs-plugin-loader.c.12	2022-09-22 12:17:59.367881179 +0200
81aec0
+++ gnome-software-3.36.1/lib/gs-plugin-loader.c	2022-09-22 12:17:59.392881205 +0200
81aec0
@@ -333,10 +333,17 @@ gs_plugin_job_to_failed_event (GsPluginJ
81aec0
 
81aec0
 	/* invalid */
81aec0
 	if (error->domain != GS_PLUGIN_ERROR) {
81aec0
-		g_warning ("not GsPlugin error %s:%i: %s",
81aec0
-			   g_quark_to_string (error->domain),
81aec0
-			   error->code,
81aec0
-			   error->message);
81aec0
+		if (g_strcmp0 (BUILD_TYPE, "debug") == 0) {
81aec0
+			g_warning ("not GsPlugin error %s:%i: %s",
81aec0
+				   g_quark_to_string (error->domain),
81aec0
+				   error->code,
81aec0
+				   error->message);
81aec0
+		} else {
81aec0
+			g_debug ("not GsPlugin error %s:%i: %s",
81aec0
+				 g_quark_to_string (error->domain),
81aec0
+				 error->code,
81aec0
+				 error->message);
81aec0
+		}
81aec0
 		g_set_error_literal (&error_copy,
81aec0
 				     GS_PLUGIN_ERROR,
81aec0
 				     GS_PLUGIN_ERROR_FAILED,
81aec0
diff -up gnome-software-3.36.1/meson.build.12 gnome-software-3.36.1/meson.build
81aec0
--- gnome-software-3.36.1/meson.build.12	2022-09-22 12:18:09.900892043 +0200
81aec0
+++ gnome-software-3.36.1/meson.build	2022-09-22 12:18:19.311901744 +0200
81aec0
@@ -9,6 +9,7 @@ conf = configuration_data()
81aec0
 conf.set_quoted('VERSION', meson.project_version())
81aec0
 conf.set_quoted('PACKAGE_NAME', meson.project_name())
81aec0
 conf.set_quoted('PACKAGE_VERSION', meson.project_version())
81aec0
+conf.set_quoted('BUILD_TYPE', get_option('buildtype'))
81aec0
 
81aec0
 # this refers to the gnome-software plugin API version
81aec0
 # this is not in any way related to a package or soname version
81aec0
diff -up gnome-software-3.36.1/src/gs-shell.c.12 gnome-software-3.36.1/src/gs-shell.c
81aec0
--- gnome-software-3.36.1/src/gs-shell.c.12	2022-09-22 12:17:59.301881111 +0200
81aec0
+++ gnome-software-3.36.1/src/gs-shell.c	2022-09-22 12:17:59.392881205 +0200
81aec0
@@ -2044,10 +2044,17 @@ gs_shell_rescan_events (GsShell *shell)
81aec0
 			    !g_error_matches (error,
81aec0
 					      G_IO_ERROR,
81aec0
 					      G_IO_ERROR_CANCELLED)) {
81aec0
-				g_warning ("not handling error %s for action %s: %s",
81aec0
-					   gs_plugin_error_to_string (error->code),
81aec0
-					   gs_plugin_action_to_string (action),
81aec0
-					   error->message);
81aec0
+				if (g_strcmp0 (BUILD_TYPE, "debug") == 0) {
81aec0
+					g_warning ("not handling error %s for action %s: %s",
81aec0
+						   gs_plugin_error_to_string (error->code),
81aec0
+						   gs_plugin_action_to_string (action),
81aec0
+						   error->message);
81aec0
+				} else {
81aec0
+					g_debug ("not handling error %s for action %s: %s",
81aec0
+						 gs_plugin_error_to_string (error->code),
81aec0
+						 gs_plugin_action_to_string (action),
81aec0
+						 error->message);
81aec0
+				}
81aec0
 			}
81aec0
 			gs_plugin_event_add_flag (event, GS_PLUGIN_EVENT_FLAG_INVALID);
81aec0
 			return;