summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilip Withnall <withnall@endlessm.com>2017-10-02 08:40:50 +0100
committerRichard Hughes <richard@hughsie.com>2017-10-02 09:09:35 +0100
commit7846f2f3a638524a0eb5b5cc2c80bf08ce18e270 (patch)
tree9a24fb9eb67ab44bc6eb49239a3c2b0bb6660484
parent10c41ba6b3b3a1dc0ac91be491c707e4776dc3fd (diff)
downloadappstream-glib-7846f2f3a638524a0eb5b5cc2c80bf08ce18e270.tar.gz
lib/app-validate: Fix typo in variable name
Signed-off-by: Philip Withnall <withnall@endlessm.com>
-rw-r--r--libappstream-glib/as-app-validate.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libappstream-glib/as-app-validate.c b/libappstream-glib/as-app-validate.c
index b8c74bf..21fa2a5 100644
--- a/libappstream-glib/as-app-validate.c
+++ b/libappstream-glib/as-app-validate.c
@@ -1141,7 +1141,7 @@ as_app_validate (AsApp *app, AsAppValidateFlags flags, GError **error)
const gchar *summary;
const gchar *tmp;
const gchar *update_contact;
- gboolean deprectated_failure = FALSE;
+ gboolean deprecated_failure = FALSE;
gboolean require_appstream_spec_only = FALSE;
gboolean require_contactdetails = TRUE;
gboolean require_copyright = FALSE;
@@ -1200,7 +1200,7 @@ as_app_validate (AsApp *app, AsAppValidateFlags flags, GError **error)
/* make the requirements more strict */
if ((flags & AS_APP_VALIDATE_FLAG_STRICT) > 0) {
- deprectated_failure = TRUE;
+ deprecated_failure = TRUE;
require_copyright = TRUE;
require_translations = TRUE;
require_project_license = TRUE;
@@ -1375,7 +1375,7 @@ as_app_validate (AsApp *app, AsAppValidateFlags flags, GError **error)
AS_PROBLEM_KIND_VALUE_MISSING,
"<!-- Copyright [year] [name] --> is not present");
}
- if (deprectated_failure &&
+ if (deprecated_failure &&
(problems & AS_APP_PROBLEM_UPDATECONTACT_FALLBACK) > 0) {
ai_app_validate_add (helper,
AS_PROBLEM_KIND_TAG_INVALID,
@@ -1635,7 +1635,7 @@ as_app_validate (AsApp *app, AsAppValidateFlags flags, GError **error)
}
/* using deprecated names */
- if (deprectated_failure && (problems & AS_APP_PROBLEM_DEPRECATED_LICENCE) > 0) {
+ if (deprecated_failure && (problems & AS_APP_PROBLEM_DEPRECATED_LICENCE) > 0) {
ai_app_validate_add (helper,
AS_PROBLEM_KIND_ATTRIBUTE_INVALID,
"<licence> is deprecated, use "