From 77dd86a79c47351ae0d1b6609b24cb23d522c7c7 Mon Sep 17 00:00:00 2001 From: sfan5 Date: Tue, 15 Jul 2025 12:21:21 +0200 Subject: [PATCH] Do not mark system-wide content as updateable relates to #16302 --- builtin/mainmenu/content/update_detector.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/builtin/mainmenu/content/update_detector.lua b/builtin/mainmenu/content/update_detector.lua index 1479328f7..7066d6474 100644 --- a/builtin/mainmenu/content/update_detector.lua +++ b/builtin/mainmenu/content/update_detector.lua @@ -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