|
|
|
@ -1560,8 +1560,10 @@ namespace cryptonote
|
|
|
|
|
static const char software[] = "monero";
|
|
|
|
|
#ifdef BUILD_TAG
|
|
|
|
|
static const char buildtag[] = BOOST_PP_STRINGIZE(BUILD_TAG);
|
|
|
|
|
static const char subdir[] = "cli";
|
|
|
|
|
#else
|
|
|
|
|
static const char buildtag[] = "source";
|
|
|
|
|
static const char subdir[] = "source";
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
if (req.command != "check" && req.command != "download" && req.command != "update")
|
|
|
|
@ -1584,8 +1586,8 @@ namespace cryptonote
|
|
|
|
|
}
|
|
|
|
|
res.update = true;
|
|
|
|
|
res.version = version;
|
|
|
|
|
res.user_uri = tools::get_update_url(software, "cli", buildtag, version, true);
|
|
|
|
|
res.auto_uri = tools::get_update_url(software, "cli", buildtag, version, false);
|
|
|
|
|
res.user_uri = tools::get_update_url(software, subdir, buildtag, version, true);
|
|
|
|
|
res.auto_uri = tools::get_update_url(software, subdir, buildtag, version, false);
|
|
|
|
|
res.hash = hash;
|
|
|
|
|
if (req.command == "check")
|
|
|
|
|
{
|
|
|
|
|