Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Take aliases into account for automatic package installation #14052

Merged
merged 1 commit into from
Nov 28, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 2 additions & 1 deletion builtin/mainmenu/content/dlg_contentstore.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down