mirror of
https://github.com/minetest/minetest.git
synced 2025-03-06 20:48:40 +01:00
Take aliases into account for automatic package installation (#14052)
This commit is contained in:
parent
dfe00f88e1
commit
cfe1953c2d
1 changed files with 2 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue