summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Hughes <richard@hughsie.com>2014-06-13 17:24:24 +0100
committerRichard Hughes <richard@hughsie.com>2014-06-13 17:24:24 +0100
commit03ddf073282de891ae4ab8a11ef0a306954b4709 (patch)
treee60611059a793e0e3fde06efd41ad769a457d60c
parentc243914070240335e846a1a39e9c1855d43568be (diff)
downloadappstream-glib-03ddf073282de891ae4ab8a11ef0a306954b4709.tar.gz
Include the number of addons with MetaInfo in the status summary
-rw-r--r--client/as-util.c18
1 files changed, 14 insertions, 4 deletions
diff --git a/client/as-util.c b/client/as-util.c
index e44a0c7..59dda89 100644
--- a/client/as-util.c
+++ b/client/as-util.c
@@ -795,8 +795,8 @@ as_util_status_html_write_exec_summary (GPtrArray *apps,
cnt++;
}
perc = 100.f * (gdouble) cnt / (gdouble) total;
- g_string_append_printf (html, "<li>Applications in Fedora with "
- "long descriptions: %i/%i (%.1f%%)</li>\n",
+ g_string_append_printf (html, "<li>Applications with "
+ "descriptions: %i/%i (%.1f%%)</li>\n",
cnt, total, perc);
/* keywords */
@@ -809,7 +809,7 @@ as_util_status_html_write_exec_summary (GPtrArray *apps,
cnt++;
}
perc = 100.f * (gdouble) cnt / (gdouble) total;
- g_string_append_printf (html, "<li>Applications in Fedora with "
+ g_string_append_printf (html, "<li>Applications with "
"keywords: %i/%i (%.1f%%)</li>\n",
cnt, total, perc);
@@ -823,7 +823,7 @@ as_util_status_html_write_exec_summary (GPtrArray *apps,
cnt++;
}
perc = 100.f * (gdouble) cnt / (gdouble) total;
- g_string_append_printf (html, "<li>Applications in Fedora with "
+ g_string_append_printf (html, "<li>Applications with "
"screenshots: %i/%i (%.1f%%)</li>\n",
cnt, total, perc);
@@ -849,6 +849,16 @@ as_util_status_html_write_exec_summary (GPtrArray *apps,
project_groups[j], cnt,
total, perc);
}
+
+ /* addons with MetaInfo */
+ cnt = 0;
+ for (i = 0; i < apps->len; i++) {
+ app = g_ptr_array_index (apps, i);
+ if (as_app_get_id_kind (app) == AS_ID_KIND_ADDON)
+ cnt++;
+ }
+ g_string_append_printf (html, "<li>Application addons with MetaInfo: %i</li>\n", cnt);
+
g_string_append (html, "</ul>\n");
return TRUE;
}