From f2918cfca67577ceb1c48e6d14d39c5658c27114 Mon Sep 17 00:00:00 2001 From: Felix Angelov Date: Tue, 28 Mar 2023 19:01:42 -0500 Subject: [PATCH] fix(updater): hash mismatch (#192) --- updater/library/src/updater.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/updater/library/src/updater.rs b/updater/library/src/updater.rs index 95aef53a..670045b9 100644 --- a/updater/library/src/updater.rs +++ b/updater/library/src/updater.rs @@ -151,7 +151,7 @@ fn update_internal(config: &ResolvedConfig) -> anyhow::Result { inflate(&download_path, &base_path, &output_path)?; // Check the hash before moving into place. - let hash_ok = check_hash(&download_path, &patch.hash)?; + let hash_ok = check_hash(&output_path, &patch.hash)?; if !hash_ok { return Err(UpdateError::InvalidState("Hash mismatch".to_string()).into()); }