diff options
author | Kalev Lember <klember@redhat.com> | 2019-01-04 12:54:38 +0100 |
---|---|---|
committer | Kalev Lember <klember@redhat.com> | 2019-01-04 12:57:19 +0100 |
commit | 425d551d2f357335aaa5adcee311579a2aec6acb (patch) | |
tree | 6e4da1fad7c200aad3626981c41b204f50f77c6a /libappstream-glib/as-app-validate.c | |
parent | 83915db0b30f7093ee8250110bd3a4ff6a96d7f0 (diff) | |
download | appstream-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.c | 2 |
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 " |