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 /client | |
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 'client')
-rw-r--r-- | client/as-util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/client/as-util.c b/client/as-util.c index 52916ee..f2f337e 100644 --- a/client/as-util.c +++ b/client/as-util.c @@ -4248,7 +4248,7 @@ as_util_vercmp (AsUtilPrivate *priv, gchar **values, GError **error) } /* compare */ - rc = as_utils_vercmp (values[0], values[1]); + rc = as_utils_vercmp_full (values[0], values[1], AS_VERSION_COMPARE_FLAG_NONE); if (rc == G_MAXINT) { g_set_error_literal (error, AS_ERROR, |