|
|
@ -98,11 +98,13 @@ end |
|
|
|
|
|
|
|
|
|
|
|
function _get_packagerefs_of(instance) |
|
|
|
function _get_packagerefs_of(instance) |
|
|
|
local packagerefs = {} |
|
|
|
local packagerefs = {} |
|
|
|
local packages = _get_all_packages() |
|
|
|
if instance:is_library() then |
|
|
|
for _, packageref in ipairs(packages) do |
|
|
|
local packages = _get_all_packages() |
|
|
|
local deps = packageref:get("deps") |
|
|
|
for _, packageref in ipairs(packages) do |
|
|
|
if deps and table.contains(table.wrap(deps), instance:name()) then |
|
|
|
local deps = packageref:get("deps") |
|
|
|
table.insert(packagerefs, packageref) |
|
|
|
if deps and table.contains(table.wrap(deps), instance:name()) then |
|
|
|
|
|
|
|
table.insert(packagerefs, packageref) |
|
|
|
|
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|
end |
|
|
|
return packagerefs |
|
|
|
return packagerefs |
|
|
@ -155,6 +157,7 @@ end |
|
|
|
|
|
|
|
|
|
|
|
function main(updaterefs) |
|
|
|
function main(updaterefs) |
|
|
|
local instances = updaterefs and _get_packagerefs_in_latest_24h() or _get_latest_modified_packages() |
|
|
|
local instances = updaterefs and _get_packagerefs_in_latest_24h() or _get_latest_modified_packages() |
|
|
|
|
|
|
|
os.exit() |
|
|
|
for _, instance in ipairs(instances) do |
|
|
|
for _, instance in ipairs(instances) do |
|
|
|
local versions = instance:versions() |
|
|
|
local versions = instance:versions() |
|
|
|
if versions and #versions > 0 then |
|
|
|
if versions and #versions > 0 then |
|
|
|