mirror of
https://git.proxmox.com/git/fwupd
synced 2025-08-14 07:09:57 +00:00
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:
parent
be78d0f0ce
commit
bcf875ff3b
@ -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;
|
||||
}
|
||||
|
@ -154,7 +154,6 @@ if get_option('tests')
|
||||
include_directories('..'),
|
||||
],
|
||||
dependencies : [
|
||||
appstream_glib,
|
||||
gio,
|
||||
soup,
|
||||
],
|
||||
|
Loading…
Reference in New Issue
Block a user