summaryrefslogtreecommitdiff
path: root/libappstream-glib/as-app-validate.c
diff options
context:
space:
mode:
authorKalev Lember <klember@redhat.com>2019-01-04 12:54:38 +0100
committerKalev Lember <klember@redhat.com>2019-01-04 12:57:19 +0100
commit425d551d2f357335aaa5adcee311579a2aec6acb (patch)
tree6e4da1fad7c200aad3626981c41b204f50f77c6a /libappstream-glib/as-app-validate.c
parent83915db0b30f7093ee8250110bd3a4ff6a96d7f0 (diff)
downloadappstream-glib-425d551d2f357335aaa5adcee311579a2aec6acb.tar.gz
Use as_utils_vercmp_full internally
This fixes, among other things, appdata validation when the version goes from 9.5 to 10, or 0.9 to 1. This partially fixes https://github.com/hughsie/appstream-glib/issues/270 We're still failing to correctly compare "Build 9.5" to "Build 10".
Diffstat (limited to 'libappstream-glib/as-app-validate.c')
-rw-r--r--libappstream-glib/as-app-validate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libappstream-glib/as-app-validate.c b/libappstream-glib/as-app-validate.c
index 628a527..a9ad2ca 100644
--- a/libappstream-glib/as-app-validate.c
+++ b/libappstream-glib/as-app-validate.c
@@ -944,7 +944,7 @@ as_app_validate_releases (AsApp *app, AsAppValidateHelper *helper, GError **erro
const gchar *version_old = as_release_get_version (release_old);
if (version == NULL || version_old == NULL)
continue;
- if (as_utils_vercmp (version, version_old) > 0) {
+ if (as_utils_vercmp_full (version, version_old, AS_VERSION_COMPARE_FLAG_NONE) > 0) {
ai_app_validate_add (helper,
AS_PROBLEM_KIND_TAG_INVALID,
"<release> versions are not in order "