moved depver lua code in dep level condition

This commit is contained in:
KotIsOff 2025-08-23 01:46:13 +03:00
parent 3131068ad8
commit 5d91d94433

View File

@ -189,17 +189,16 @@ function check_dependencies(packinfo)
"%s (%s)", gui.str("error.dependency-not-found"), depid
)
end
if table.has(packs_installed, packinfo.id) then
table.insert(required, depid)
end
end
local dep_pack = pack.get_info(depid);
if depver ~= "*" or depver ~= dep_pack.version then
return string.format("%s (%s@%s != %s)", gui.str("error.dependency-version-not-met"), depid, dep_pack.version, depver);
end
if table.has(packs_installed, packinfo.id) then
table.insert(required, depid)
end
end
end
return
end