:3
This commit is contained in:
parent
7e5b7503d2
commit
b96de1a029
4
rtmc.lua
4
rtmc.lua
|
@ -363,7 +363,6 @@ rawset(__BUNDLER_FILES, "updater", function ()
|
||||||
function updater:checkAndUpdateAll()
|
function updater:checkAndUpdateAll()
|
||||||
local updated = false;
|
local updated = false;
|
||||||
for path, entry in pairs(self.updated_files) do
|
for path, entry in pairs(self.updated_files) do
|
||||||
log.debug("Checking update for " .. path);
|
|
||||||
if self:check(entry.branch) then
|
if self:check(entry.branch) then
|
||||||
self:update(path, entry.url);
|
self:update(path, entry.url);
|
||||||
updated = true;
|
updated = true;
|
||||||
|
@ -401,9 +400,6 @@ rawset(__BUNDLER_FILES, "updater", function ()
|
||||||
log.debug("Commit hash doesnt match, probbably an update");
|
log.debug("Commit hash doesnt match, probbably an update");
|
||||||
return true;
|
return true;
|
||||||
end
|
end
|
||||||
if branch == "main" then
|
|
||||||
log.debug("No need for an update");
|
|
||||||
end
|
|
||||||
return false;
|
return false;
|
||||||
end
|
end
|
||||||
function updater:update(path, url)
|
function updater:update(path, url)
|
||||||
|
|
|
@ -41,7 +41,6 @@ end
|
||||||
function updater:checkAndUpdateAll()
|
function updater:checkAndUpdateAll()
|
||||||
local updated = false;
|
local updated = false;
|
||||||
for path, entry in pairs(self.updated_files) do
|
for path, entry in pairs(self.updated_files) do
|
||||||
log.debug("Checking update for " .. path);
|
|
||||||
if self:check(entry.branch) then
|
if self:check(entry.branch) then
|
||||||
self:update(path, entry.url);
|
self:update(path, entry.url);
|
||||||
updated = true;
|
updated = true;
|
||||||
|
@ -83,9 +82,6 @@ function updater:check(branch)
|
||||||
log.debug("Commit hash doesnt match, probbably an update");
|
log.debug("Commit hash doesnt match, probbably an update");
|
||||||
return true;
|
return true;
|
||||||
end
|
end
|
||||||
if branch == "main" then
|
|
||||||
log.debug("No need for an update");
|
|
||||||
end
|
|
||||||
return false;
|
return false;
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user