mirror of
https://github.com/minetest/minetest.git
synced 2024-11-23 16:13:46 +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
|
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
|
||||||
|
Loading…
Reference in New Issue
Block a user