forked from Mirrorlandia_minetest/minetest
Take aliases into account for automatic package installation (#14052)
This commit is contained in:
parent
dfe00f88e1
commit
cfe1953c2d
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user