trivial: Fix CI failure by using the correct enum type

This commit is contained in:
Richard Hughes 2019-03-23 13:57:51 +00:00
parent 38b357b131
commit 86923b95e9
4 changed files with 3 additions and 3 deletions

View File

@ -13,6 +13,7 @@ G_BEGIN_DECLS
typedef enum {
FU_APP_FLAGS_NONE = 0,
FU_APP_FLAGS_NO_IDLE_SOURCES = 1 << 0,
FU_APP_FLAGS_IS_OFFLINE = 1 << 1,
FU_APP_FLAGS_LAST
} FuAppFlags;

View File

@ -1468,7 +1468,7 @@ fu_engine_install (FuEngine *self,
}
/* schedule this for the next reboot if not in system-update.target */
if ((self->app_flags & FU_ENGINE_LOAD_FLAG_IS_OFFLINE) == 0 &&
if ((self->app_flags & FU_APP_FLAGS_IS_OFFLINE) == 0 &&
(flags & FWUPD_INSTALL_FLAG_OFFLINE) > 0)
return fu_plugin_runner_schedule_update (plugin, device, blob_cab, error);

View File

@ -25,7 +25,6 @@ G_DECLARE_FINAL_TYPE (FuEngine, fu_engine, FU, ENGINE, GObject)
typedef enum {
FU_ENGINE_LOAD_FLAG_NONE = 0,
FU_ENGINE_LOAD_FLAG_READONLY_FS = 1 << 0,
FU_ENGINE_LOAD_FLAG_IS_OFFLINE = 1 << 1,
FU_ENGINE_LOAD_FLAG_LAST
} FuEngineLoadFlags;

View File

@ -1371,7 +1371,7 @@ fu_main_on_bus_acquired_cb (GDBusConnection *connection,
/* are we running in the offline target */
if (fu_main_is_running_offline_update (priv))
fu_engine_add_app_flag (priv->engine, FU_ENGINE_LOAD_FLAG_IS_OFFLINE);
fu_engine_add_app_flag (priv->engine, FU_APP_FLAGS_IS_OFFLINE);
/* connect to D-Bus directly */
priv->proxy_uid =