mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-23 19:33:28 +01:00
Merge pull request #2513
309290d1
Source updates are in a source subdirectory (moneromooo-monero)
This commit is contained in:
commit
87d0516f7d
@ -1298,11 +1298,12 @@ namespace cryptonote
|
|||||||
bool core::check_updates()
|
bool core::check_updates()
|
||||||
{
|
{
|
||||||
static const char software[] = "monero";
|
static const char software[] = "monero";
|
||||||
static const char subdir[] = "cli"; // because it can never be simple
|
|
||||||
#ifdef BUILD_TAG
|
#ifdef BUILD_TAG
|
||||||
static const char buildtag[] = BOOST_PP_STRINGIZE(BUILD_TAG);
|
static const char buildtag[] = BOOST_PP_STRINGIZE(BUILD_TAG);
|
||||||
|
static const char subdir[] = "cli"; // because it can never be simple
|
||||||
#else
|
#else
|
||||||
static const char buildtag[] = "source";
|
static const char buildtag[] = "source";
|
||||||
|
static const char subdir[] = "source"; // because it can never be simple
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (check_updates_level == UPDATES_DISABLED)
|
if (check_updates_level == UPDATES_DISABLED)
|
||||||
|
@ -1619,8 +1619,10 @@ namespace cryptonote
|
|||||||
static const char software[] = "monero";
|
static const char software[] = "monero";
|
||||||
#ifdef BUILD_TAG
|
#ifdef BUILD_TAG
|
||||||
static const char buildtag[] = BOOST_PP_STRINGIZE(BUILD_TAG);
|
static const char buildtag[] = BOOST_PP_STRINGIZE(BUILD_TAG);
|
||||||
|
static const char subdir[] = "cli";
|
||||||
#else
|
#else
|
||||||
static const char buildtag[] = "source";
|
static const char buildtag[] = "source";
|
||||||
|
static const char subdir[] = "source";
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (req.command != "check" && req.command != "download" && req.command != "update")
|
if (req.command != "check" && req.command != "download" && req.command != "update")
|
||||||
@ -1643,8 +1645,8 @@ namespace cryptonote
|
|||||||
}
|
}
|
||||||
res.update = true;
|
res.update = true;
|
||||||
res.version = version;
|
res.version = version;
|
||||||
res.user_uri = tools::get_update_url(software, "cli", buildtag, version, true);
|
res.user_uri = tools::get_update_url(software, subdir, buildtag, version, true);
|
||||||
res.auto_uri = tools::get_update_url(software, "cli", buildtag, version, false);
|
res.auto_uri = tools::get_update_url(software, subdir, buildtag, version, false);
|
||||||
res.hash = hash;
|
res.hash = hash;
|
||||||
if (req.command == "check")
|
if (req.command == "check")
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user