diff options
author | Kalev Lember <klember@redhat.com> | 2015-09-18 14:34:00 +0200 |
---|---|---|
committer | Kalev Lember <klember@redhat.com> | 2015-09-18 14:52:27 +0200 |
commit | 2eabdad84ba1c6e3a1ae7024bb0c6e60e2e1e30e (patch) | |
tree | 7f718aa7b736ac2311e5a9685552e662349c99f9 | |
parent | dad7259e912d928166bfdb4e65d480cbdea19571 (diff) | |
download | appstream-glib-2eabdad84ba1c6e3a1ae7024bb0c6e60e2e1e30e.tar.gz |
Simplify veto messages for missing <name> and <summary>
Don't mention desktop file fallbacks now that we only include apps that
have appdata.
-rw-r--r-- | client/as-util.c | 2 | ||||
-rw-r--r-- | libappstream-builder/asb-context.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/client/as-util.c b/client/as-util.c index e0aaae9..12d1a1d 100644 --- a/client/as-util.c +++ b/client/as-util.c @@ -2185,7 +2185,7 @@ as_util_matrix_html_write_app (AsApp *app, GString *html, AsUtilDistro distro) as_util_matrix_html_write_item (&state_app, AS_UTIL_PKG_STATE_FAIL, str, - "No comment in .desktop or summary in AppData file"); + "No summary in AppData file"); } else { as_util_matrix_html_write_item (NULL, AS_UTIL_PKG_STATE_OK, str, NULL); } diff --git a/libappstream-builder/asb-context.c b/libappstream-builder/asb-context.c index de460de..4763d63 100644 --- a/libappstream-builder/asb-context.c +++ b/libappstream-builder/asb-context.c @@ -953,9 +953,9 @@ asb_context_detect_missing_data (AsbContext *ctx, GError **error) for (l = priv->apps; l != NULL; l = l->next) { app = AS_APP (l->data); if (as_app_get_name (AS_APP (app), "C") == NULL) - as_app_add_veto (AS_APP (app), "No 'Name' in desktop or <name> in AppData"); + as_app_add_veto (AS_APP (app), "No <name> in AppData"); if (as_app_get_comment (AS_APP (app), "C") == NULL) - as_app_add_veto (AS_APP (app), "No 'Comment' in desktop or <summary> in AppData"); + as_app_add_veto (AS_APP (app), "No <summary> in AppData"); if (as_app_get_id_kind (AS_APP (app)) != AS_ID_KIND_ADDON) { if (as_app_get_icon_default (AS_APP (app)) == NULL) as_app_add_veto (AS_APP (app), "Has no Icon"); |