From 196cc6d9b445ee4246c7ff18d98d616aef286550 Mon Sep 17 00:00:00 2001 From: Thomas Deutschmann Date: Wed, 4 Aug 2021 15:38:59 +0200 Subject: [PATCH] plugin modem-manager: XB_NODE_EXPORT_FLAG_COLLAPSE_EMPTY is only available in >=libxmlb-0.2.2 Closes: https://github.com/fwupd/fwupd/issues/3600 --- plugins/modem-manager/fu-firehose-updater.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugins/modem-manager/fu-firehose-updater.c b/plugins/modem-manager/fu-firehose-updater.c index 00fcdf607..076aa79cc 100644 --- a/plugins/modem-manager/fu-firehose-updater.c +++ b/plugins/modem-manager/fu-firehose-updater.c @@ -630,7 +630,11 @@ fu_firehose_updater_run_action (FuFirehoseUpdater *self, XbNode *node, guint max action = xb_node_get_element (node); +#if LIBXMLB_CHECK_VERSION(0,2,2) cmd_str = xb_node_export (node, XB_NODE_EXPORT_FLAG_COLLAPSE_EMPTY, error); +#else + cmd_str = xb_node_export (node, XB_NODE_EXPORT_FLAG_NONE, error); +#endif if (cmd_str == NULL) return FALSE; cmd_bytearray = g_byte_array_new_take ((guint8 *)cmd_str, strlen (cmd_str));