mirror of
https://git.proxmox.com/git/fwupd
synced 2025-08-07 10:27:36 +00:00
Do not use deprecated API from libappstream-glib
This commit is contained in:
parent
aaa0772618
commit
65dfbfe54f
@ -126,7 +126,7 @@ PKG_CHECK_MODULES(GLIB, glib-2.0 >= 2.45.8 gobject-2.0 gthread-2.0 gio-2.0 >= 2.
|
|||||||
PKG_CHECK_MODULES(GUDEV, gudev-1.0)
|
PKG_CHECK_MODULES(GUDEV, gudev-1.0)
|
||||||
PKG_CHECK_MODULES(POLKIT, polkit-gobject-1 >= 0.103)
|
PKG_CHECK_MODULES(POLKIT, polkit-gobject-1 >= 0.103)
|
||||||
PKG_CHECK_MODULES(GCAB, libgcab-1.0)
|
PKG_CHECK_MODULES(GCAB, libgcab-1.0)
|
||||||
PKG_CHECK_MODULES(APPSTREAM_GLIB, appstream-glib >= 0.5.4)
|
PKG_CHECK_MODULES(APPSTREAM_GLIB, appstream-glib >= 0.5.10)
|
||||||
PKG_CHECK_MODULES(GUSB, gusb >= 0.2.8)
|
PKG_CHECK_MODULES(GUSB, gusb >= 0.2.8)
|
||||||
PKG_CHECK_MODULES(SQLITE, sqlite3)
|
PKG_CHECK_MODULES(SQLITE, sqlite3)
|
||||||
PKG_CHECK_MODULES(ARCHIVE, libarchive)
|
PKG_CHECK_MODULES(ARCHIVE, libarchive)
|
||||||
|
@ -22,7 +22,7 @@ BuildRequires: systemd
|
|||||||
BuildRequires: libsoup-devel >= 2.51.92
|
BuildRequires: libsoup-devel >= 2.51.92
|
||||||
BuildRequires: libarchive-devel
|
BuildRequires: libarchive-devel
|
||||||
BuildRequires: gobject-introspection-devel
|
BuildRequires: gobject-introspection-devel
|
||||||
BuildRequires: libappstream-glib-devel >= 0.5.2
|
BuildRequires: libappstream-glib-devel >= 0.5.10
|
||||||
BuildRequires: gcab
|
BuildRequires: gcab
|
||||||
|
|
||||||
%ifarch x86_64 %{ix86} aarch64
|
%ifarch x86_64 %{ix86} aarch64
|
||||||
|
@ -539,7 +539,7 @@ fu_main_vendor_quirk_release_version (AsApp *app)
|
|||||||
guint i;
|
guint i;
|
||||||
|
|
||||||
/* no quirk required */
|
/* no quirk required */
|
||||||
if (as_app_get_id_kind (app) != AS_ID_KIND_FIRMWARE)
|
if (as_app_get_kind (app) != AS_APP_KIND_FIRMWARE)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
for (i = 0; quirk_table[i].identifier != NULL; i++)
|
for (i = 0; quirk_table[i].identifier != NULL; i++)
|
||||||
@ -1986,7 +1986,7 @@ main (int argc, char *argv[])
|
|||||||
AS_STORE_WATCH_FLAG_REMOVED);
|
AS_STORE_WATCH_FLAG_REMOVED);
|
||||||
|
|
||||||
/* load AppStream */
|
/* load AppStream */
|
||||||
as_store_add_filter (priv->store, AS_ID_KIND_FIRMWARE);
|
as_store_add_filter (priv->store, AS_APP_KIND_FIRMWARE);
|
||||||
if (!as_store_load (priv->store,
|
if (!as_store_load (priv->store,
|
||||||
AS_STORE_LOAD_FLAG_APP_INFO_SYSTEM,
|
AS_STORE_LOAD_FLAG_APP_INFO_SYSTEM,
|
||||||
NULL, &error)){
|
NULL, &error)){
|
||||||
|
@ -940,7 +940,7 @@ fu_util_verify_update_internal (FuUtilPrivate *priv,
|
|||||||
/* add app to store */
|
/* add app to store */
|
||||||
app = as_app_new ();
|
app = as_app_new ();
|
||||||
as_app_set_id (app, id);
|
as_app_set_id (app, id);
|
||||||
as_app_set_id_kind (app, AS_ID_KIND_FIRMWARE);
|
as_app_set_kind (app, AS_APP_KIND_FIRMWARE);
|
||||||
as_app_set_source_kind (app, AS_APP_SOURCE_KIND_INF);
|
as_app_set_source_kind (app, AS_APP_SOURCE_KIND_INF);
|
||||||
rel = as_release_new ();
|
rel = as_release_new ();
|
||||||
as_release_set_version (rel, fu_rom_get_version (rom));
|
as_release_set_version (rel, fu_rom_get_version (rom));
|
||||||
|
Loading…
Reference in New Issue
Block a user