mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-06 17:41:04 +00:00
parent
0eabc252b8
commit
77dd86a79c
1 changed files with 4 additions and 1 deletions
|
@ -114,9 +114,12 @@ function update_detector.get_all()
|
|||
local ret = {}
|
||||
local all_content = pkgmgr.get_all()
|
||||
for _, content in ipairs(all_content) do
|
||||
assert(content.path and content.path ~= "")
|
||||
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`
|
||||
local latest_release = latest_releases[cdb_id]
|
||||
if not latest_release and content.type == "game" then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue