mirror of
https://git.proxmox.com/git/fwupd
synced 2025-05-29 18:32:39 +00:00
Fix compile error against fwupdate git due to dropped functions.
Closes #37
This commit is contained in:
parent
28afc0baf5
commit
6fade1ffea
@ -218,6 +218,7 @@ fu_provider_uefi_update (FuProvider *provider,
|
|||||||
gboolean ret = TRUE;
|
gboolean ret = TRUE;
|
||||||
guint64 hardware_instance = 0; /* FIXME */
|
guint64 hardware_instance = 0; /* FIXME */
|
||||||
int fd;
|
int fd;
|
||||||
|
int call;
|
||||||
const gchar *fn = "/boot/fwupd-efiupdate";
|
const gchar *fn = "/boot/fwupd-efiupdate";
|
||||||
|
|
||||||
/* save the data to a temp file */
|
/* save the data to a temp file */
|
||||||
@ -254,13 +255,14 @@ fu_provider_uefi_update (FuProvider *provider,
|
|||||||
/* perform the update */
|
/* perform the update */
|
||||||
g_debug ("Performing UEFI capsule update");
|
g_debug ("Performing UEFI capsule update");
|
||||||
fu_provider_set_status (provider, FWUPD_STATUS_SCHEDULING);
|
fu_provider_set_status (provider, FWUPD_STATUS_SCHEDULING);
|
||||||
if (fwup_set_up_update (re, hardware_instance, fd) < 0) {
|
call = fwup_set_up_update (re, hardware_instance, fd);
|
||||||
|
if (call < 0) {
|
||||||
ret = FALSE;
|
ret = FALSE;
|
||||||
g_set_error (error,
|
g_set_error (error,
|
||||||
FWUPD_ERROR,
|
FWUPD_ERROR,
|
||||||
FWUPD_ERROR_NOT_SUPPORTED,
|
FWUPD_ERROR_NOT_SUPPORTED,
|
||||||
"UEFI firmware update failed: %s",
|
"UEFI firmware update failed: %s",
|
||||||
fwup_strerror (fwup_error));
|
call);
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
out:
|
out:
|
||||||
|
Loading…
Reference in New Issue
Block a user