Fixed a problem with writing the wrong (empty) sha256 hash in the autoupdater manifest.

This commit is contained in:
Kenneth Skovhede
2018-01-18 22:57:20 +01:00
parent 4bffc488a9
commit 3a8f76e337
@@ -813,9 +813,12 @@ namespace Duplicati.Library.AutoUpdater
}
}
archive_temp.Position = 0;
remoteManifest.CompressedSize = archive_temp.Length;
archive_temp.Position = 0;
remoteManifest.MD5 = computeStreamMD5(archive_temp);
archive_temp.Position = 0;
remoteManifest.SHA256 = computeStreamSHA256(archive_temp);
}
System.IO.File.Move(archive_temp_file, System.IO.Path.Combine(outputfolder, "package.zip"));