From 231c19be935198ecfce63e21660182e05d1a8174 Mon Sep 17 00:00:00 2001 From: Diavolo Date: Wed, 12 Apr 2023 11:06:45 +0200 Subject: [PATCH] feat: add update flag --- src/client/updater/file_updater.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/client/updater/file_updater.cpp b/src/client/updater/file_updater.cpp index 2de1c384..bee3cf86 100644 --- a/src/client/updater/file_updater.cpp +++ b/src/client/updater/file_updater.cpp @@ -5,6 +5,7 @@ #include "file_updater.hpp" #include +#include #include #include #include @@ -271,7 +272,7 @@ namespace updater bool file_updater::is_outdated_file(const file_info& file) const { #if !defined(NDEBUG) || !defined(CI) - if (file.name == UPDATE_HOST_BINARY) + if (file.name == UPDATE_HOST_BINARY && !utils::flags::has_flag("update")) { return false; }