1
0
mirror of https://github.com/AR2000AR/openComputers_codes.git synced 2025-09-08 14:41:14 +02:00

[pm_get] pass "--allow-same-version" to pm

This commit is contained in:
2023-04-13 16:40:01 +02:00
parent d45a97d8c4
commit 4c679f8cf5
2 changed files with 2 additions and 1 deletions

Binary file not shown.

View File

@@ -398,7 +398,8 @@ elseif (mode == "upgrade") then
if (manifest.dependencies) then
for dep, ver in pairs(manifest.dependencies) do
local remoteManifest = getPacket(dep) --TODO : add target repo
if (remoteManifest and (remoteManifest.version == "oppm" or compareVersion(remoteManifest.version, manifest.version) or opts["allow-same-version"])) then
local localManifest = pm.getManifestFromInstalled(dep)
if (remoteManifest and (remoteManifest.version == "oppm" or compareVersion(remoteManifest.version, localManifest.version) or opts["allow-same-version"])) then
table.insert(toUpgrade, dep)
end
end