Bugfix: Double update in edge case

This commit is contained in:
PentagonLP 2021-06-01 18:36:14 +02:00
parent 052c04c5d8
commit 336da7f663

2
ccpt
View File

@ -416,7 +416,7 @@ function upgradepackage(packageid,packageinfo)
end end
installedpackages = readData("/.ccpt/installedpackages",true) installedpackages = readData("/.ccpt/installedpackages",true)
if installedpackages==packageinfo["newestversion"] then if installedpackages[packageid]==packageinfo["newestversion"] then
properprint.pprint("'" .. packageid .. "' already updated! Skipping... (This is NOT an error)") properprint.pprint("'" .. packageid .. "' already updated! Skipping... (This is NOT an error)")
else else
properprint.pprint("Updating '" .. packageid .. "' (" .. installedpackages[packageid] .. "->" .. packageinfo["newestversion"] .. ")...") properprint.pprint("Updating '" .. packageid .. "' (" .. installedpackages[packageid] .. "->" .. packageinfo["newestversion"] .. ")...")