mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 16:45:20 +02:00
@@ -114,9 +114,12 @@ function update_detector.get_all()
|
|||||||
local ret = {}
|
local ret = {}
|
||||||
local all_content = pkgmgr.get_all()
|
local all_content = pkgmgr.get_all()
|
||||||
for _, content in ipairs(all_content) do
|
for _, content in ipairs(all_content) do
|
||||||
|
assert(content.path and content.path ~= "")
|
||||||
local cdb_id = pkgmgr.get_contentdb_id(content)
|
local cdb_id = pkgmgr.get_contentdb_id(content)
|
||||||
|
|
||||||
if cdb_id then
|
-- Do not consider content that we cannot modify to be out-of-date.
|
||||||
|
-- This would be technically correct but confusing for the user.
|
||||||
|
if cdb_id and core.may_modify_path(content.path) then
|
||||||
-- The backend will account for aliases in `latest_releases`
|
-- The backend will account for aliases in `latest_releases`
|
||||||
local latest_release = latest_releases[cdb_id]
|
local latest_release = latest_releases[cdb_id]
|
||||||
if not latest_release and content.type == "game" then
|
if not latest_release and content.type == "game" then
|
||||||
|
Reference in New Issue
Block a user