From cfe1953c2d5e5e0cee6a8d278dc0286ab5f5a854 Mon Sep 17 00:00:00 2001 From: grorp <82708541+grorp@users.noreply.github.com> Date: Tue, 28 Nov 2023 21:02:41 +0100 Subject: [PATCH] Take aliases into account for automatic package installation (#14052) --- builtin/mainmenu/content/dlg_contentstore.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/builtin/mainmenu/content/dlg_contentstore.lua b/builtin/mainmenu/content/dlg_contentstore.lua index fa8f0b85c..e567fcef7 100644 --- a/builtin/mainmenu/content/dlg_contentstore.lua +++ b/builtin/mainmenu/content/dlg_contentstore.lua @@ -695,10 +695,11 @@ local function resolve_auto_install_spec() return nil end + local spec = store.aliases[auto_install_spec] or auto_install_spec local resolved = nil for _, pkg in ipairs(store.packages_full_unordered) do - if pkg.id == auto_install_spec then + if pkg.id == spec then resolved = pkg break end