[gnome-software] trivial: appstream: If failing to resolve, do not log a profiling warning
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] trivial: appstream: If failing to resolve, do not log a profiling warning
- Date: Mon, 21 Oct 2013 11:58:25 +0000 (UTC)
commit fabd2a423708789e43a8d43623c5c65203b02658
Author: Richard Hughes <richard hughsie com>
Date: Mon Oct 21 11:23:11 2013 +0100
trivial: appstream: If failing to resolve, do not log a profiling warning
src/plugins/gs-plugin-appstream.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/src/plugins/gs-plugin-appstream.c b/src/plugins/gs-plugin-appstream.c
index 6504273..d399a31 100644
--- a/src/plugins/gs-plugin-appstream.c
+++ b/src/plugins/gs-plugin-appstream.c
@@ -610,11 +610,15 @@ gs_plugin_refine (GsPlugin *plugin,
for (l = list; l != NULL; l = l->next) {
app = GS_APP (l->data);
ret = gs_plugin_refine_from_id (plugin, app, error);
- if (!ret)
+ if (!ret) {
+ gs_profile_stop_full (plugin->profile, "appstream::refine");
goto out;
+ }
ret = gs_plugin_refine_from_pkgname (plugin, app, error);
- if (!ret)
+ if (!ret) {
+ gs_profile_stop_full (plugin->profile, "appstream::refine");
goto out;
+ }
}
gs_profile_stop_full (plugin->profile, "appstream::refine");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]