[gnome-software/1609-new-runtime-warning-when-opening-repositories-dialog] packagekit: Mute 'Failed to find one package for...' runtime warning
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/1609-new-runtime-warning-when-opening-repositories-dialog] packagekit: Mute 'Failed to find one package for...' runtime warning
- Date: Thu, 3 Mar 2022 11:14:58 +0000 (UTC)
commit 46661da1ddb5075afc6130cb87c72cc9c3f26a93
Author: Milan Crha <mcrha redhat com>
Date: Thu Mar 3 12:13:00 2022 +0100
packagekit: Mute 'Failed to find one package for...' runtime warning
No need to print a runtime warning when a package for a file cannot be found,
especially when it's a .repo file under /etc/yum.repos.d/, because it's not
uncommon that users add there custom .repo files, which are not provided
by any package.
Closes https://gitlab.gnome.org/GNOME/gnome-software/-/issues/1609
plugins/packagekit/gs-plugin-packagekit.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/plugins/packagekit/gs-plugin-packagekit.c b/plugins/packagekit/gs-plugin-packagekit.c
index 76cd8041b..390244c30 100644
--- a/plugins/packagekit/gs-plugin-packagekit.c
+++ b/plugins/packagekit/gs-plugin-packagekit.c
@@ -1877,8 +1877,8 @@ search_files_cb (GObject *source_object,
package = g_ptr_array_index (packages, 0);
gs_plugin_packagekit_set_metadata_from_package (GS_PLUGIN (self), search_files_data->app,
package);
} else {
- g_warning ("Failed to find one package for %s, %s, [%u]",
- gs_app_get_id (search_files_data->app), search_files_data->filename,
packages->len);
+ g_debug ("Failed to find one package for %s, %s, [%u]",
+ gs_app_get_id (search_files_data->app), search_files_data->filename, packages->len);
}
refine_task_complete_operation (refine_task);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]