mirror of
https://github.com/minetest/minetest.git
synced 2024-11-23 08:03:45 +01:00
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