trivial: Don't use AppStream-glib in libfwupd

It's only used in one place, and that's for checking against very old versions
of the running daemon.
This commit is contained in:
Richard Hughes 2018-09-18 21:19:31 +01:00
parent be78d0f0ce
commit bcf875ff3b
2 changed files with 2 additions and 4 deletions

View File

@ -8,7 +8,6 @@
#include <glib-object.h>
#include <fnmatch.h>
#include <appstream-glib.h>
#include "fwupd-client.h"
#include "fwupd-common.h"
@ -287,7 +286,7 @@ fwupd_client_devices_func (void)
g_test_skip ("no enabled fwupd daemon");
return;
}
if (as_utils_vercmp (fwupd_client_get_daemon_version (client), "1.0.0") < 0) {
if (!g_str_has_prefix (fwupd_client_get_daemon_version (client), "1.")) {
g_test_skip ("running fwupd is too old");
return;
}
@ -336,7 +335,7 @@ fwupd_client_remotes_func (void)
g_test_skip ("no enabled fwupd daemon");
return;
}
if (as_utils_vercmp (fwupd_client_get_daemon_version (client), "1.0.0") < 0) {
if (!g_str_has_prefix (fwupd_client_get_daemon_version (client), "1.")) {
g_test_skip ("running fwupd is too old");
return;
}

View File

@ -154,7 +154,6 @@ if get_option('tests')
include_directories('..'),
],
dependencies : [
appstream_glib,
gio,
soup,
],