I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit f6ce4cb2 authored by zzz's avatar zzz
Browse files

* Update: Better error message when .sud file not found or truncated

      http://forum.i2p/viewtopic.php?t=3979
      The bug with the file going to the wrong place was fixed a couple months ago.
parent 4863ef33
No related branches found
No related tags found
No related merge requests found
...@@ -414,8 +414,14 @@ D8usM7Dxp5yrDrCYZ5AIijc= ...@@ -414,8 +414,14 @@ D8usM7Dxp5yrDrCYZ5AIijc=
* data was moved, and an error <code>String</code> otherwise. * data was moved, and an error <code>String</code> otherwise.
*/ */
public String migrateVerified(String currentVersion, File signedFile, File outputFile) { public String migrateVerified(String currentVersion, File signedFile, File outputFile) {
if (!isUpdatedVersion(currentVersion, signedFile)) if (!signedFile.exists())
return "Downloaded version is not greater than current version"; return "File not found: " + signedFile.getAbsolutePath();
if (!isUpdatedVersion(currentVersion, signedFile)) {
if ("".equals(_newVersion))
return "Truncated or corrupt file: " + signedFile.getAbsolutePath();
else
return "Downloaded version is not greater than current version";
}
if (!verify(signedFile)) if (!verify(signedFile))
return "Unknown signing key or corrupt file"; return "Unknown signing key or corrupt file";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment