Merge pull request #512 from diamante0018/diamante0018-patch-1
feat: add update flag
This commit is contained in:
commit
8022c0a26e
@ -5,6 +5,7 @@
|
|||||||
#include "file_updater.hpp"
|
#include "file_updater.hpp"
|
||||||
|
|
||||||
#include <utils/cryptography.hpp>
|
#include <utils/cryptography.hpp>
|
||||||
|
#include <utils/flags.hpp>
|
||||||
#include <utils/http.hpp>
|
#include <utils/http.hpp>
|
||||||
#include <utils/io.hpp>
|
#include <utils/io.hpp>
|
||||||
#include <utils/compression.hpp>
|
#include <utils/compression.hpp>
|
||||||
@ -271,7 +272,7 @@ namespace updater
|
|||||||
bool file_updater::is_outdated_file(const file_info& file) const
|
bool file_updater::is_outdated_file(const file_info& file) const
|
||||||
{
|
{
|
||||||
#if !defined(NDEBUG) || !defined(CI)
|
#if !defined(NDEBUG) || !defined(CI)
|
||||||
if (file.name == UPDATE_HOST_BINARY)
|
if (file.name == UPDATE_HOST_BINARY && !utils::flags::has_flag("update"))
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user