Add support for beta releases to updater command-line tool.

Fix several bugs in updater.
Validate images both on file size and checksum.
This commit is contained in:
Wouter R
2014-02-22 00:09:41 +01:00
parent 96065095ab
commit 264511f809
2 changed files with 81 additions and 29 deletions
+1 -1
View File
@@ -368,7 +368,7 @@ local function main()
quit(1)
end
if um.findVersion(newVersion.version, stables) or um.findVersion(newVersion.version, betas) then
if um.findVersion(newVersion.version, nil, stables) or um.findVersion(newVersion.version, nil, betas) then
print("Error: firmware version " .. um.formatVersion(newVersion.version) .. " already exists")
quit(3)
end