1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-08-06 17:41:04 +00:00

Do not mark system-wide content as updateable

relates to #16302
This commit is contained in:
sfan5 2025-07-15 12:21:21 +02:00
parent 0eabc252b8
commit 77dd86a79c

View file

@ -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