From 867b67c4fd6490381dbe061df52ec75725da8f43 Mon Sep 17 00:00:00 2001 From: Jaquee Date: Sun, 22 Oct 2017 12:56:01 +0200 Subject: Wallet API: override update subdir when built from src --- src/wallet/api/wallet_manager.cpp | 4 +++- src/wallet/wallet2_api.h | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'src/wallet') diff --git a/src/wallet/api/wallet_manager.cpp b/src/wallet/api/wallet_manager.cpp index a64766c84..2326f54d3 100644 --- a/src/wallet/api/wallet_manager.cpp +++ b/src/wallet/api/wallet_manager.cpp @@ -434,12 +434,14 @@ std::string WalletManagerImpl::resolveOpenAlias(const std::string &address, bool return addresses.front(); } -std::tuple WalletManager::checkUpdates(const std::string &software, const std::string &subdir) +std::tuple WalletManager::checkUpdates(const std::string &software, std::string subdir) { #ifdef BUILD_TAG static const char buildtag[] = BOOST_PP_STRINGIZE(BUILD_TAG); #else static const char buildtag[] = "source"; + // Override the subdir string when built from source + subdir = "source"; #endif std::string version, hash; diff --git a/src/wallet/wallet2_api.h b/src/wallet/wallet2_api.h index 4d734ab94..12dd8c859 100644 --- a/src/wallet/wallet2_api.h +++ b/src/wallet/wallet2_api.h @@ -869,7 +869,7 @@ struct WalletManager virtual std::string resolveOpenAlias(const std::string &address, bool &dnssec_valid) const = 0; //! checks for an update and returns version, hash and url - static std::tuple checkUpdates(const std::string &software, const std::string &subdir); + static std::tuple checkUpdates(const std::string &software, std::string subdir); }; -- cgit v1.2.3