Take aliases into account for automatic package installation (#14052)

This commit is contained in:
grorp 2023-11-28 21:02:41 +01:00 committed by GitHub
parent dfe00f88e1
commit cfe1953c2d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -695,10 +695,11 @@ local function resolve_auto_install_spec()
return nil return nil
end end
local spec = store.aliases[auto_install_spec] or auto_install_spec
local resolved = nil local resolved = nil
for _, pkg in ipairs(store.packages_full_unordered) do for _, pkg in ipairs(store.packages_full_unordered) do
if pkg.id == auto_install_spec then if pkg.id == spec then
resolved = pkg resolved = pkg
break break
end end