From 61eb8466db81dc4d8553571385020ca667aef67c Mon Sep 17 00:00:00 2001 From: amr-crabnebula Date: Fri, 17 Nov 2023 03:44:51 +0200 Subject: [PATCH] remove more dbg! --- crates/updater/src/lib.rs | 6 ------ 1 file changed, 6 deletions(-) diff --git a/crates/updater/src/lib.rs b/crates/updater/src/lib.rs index b0f3fe81..bde57863 100644 --- a/crates/updater/src/lib.rs +++ b/crates/updater/src/lib.rs @@ -680,26 +680,20 @@ impl Update { perms.set_mode(0o700); std::fs::set_permissions(&tmp_dir, perms)?; - dbg!(&tmp_dir); let (_, tmp_app_image) = tempfile::Builder::new() .prefix("current_app") .suffix(".AppImage") .tempfile_in(tmp_dir)? .keep()?; - dbg!(1); // create a backup of our current app image std::fs::rename(&self.extract_path, &tmp_app_image)?; - dbg!(3); // if something went wrong during the extraction, we should restore previous app if let Err(err) = std::fs::write(&self.extract_path, bytes) { - dbg!(4); std::fs::rename(tmp_app_image, &self.extract_path)?; - dbg!(5); return Err(err.into()); } - dbg!(6); // early finish we have everything we need here return Ok(());