Skip to content
This repository has been archived by the owner on Jan 12, 2025. It is now read-only.

Commit

Permalink
main: download new before removing old
Browse files Browse the repository at this point in the history
Signed-off-by: Dylan Turner <[email protected]>
  • Loading branch information
blueOkiris committed Apr 3, 2023
1 parent f6e8e8a commit 4206d6d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -175,10 +175,12 @@ fn upgrade_packages(ask: bool) {

new_manifest.push(upstream.clone());

inst_pkg.remove();
println!("Downloading...");
upstream.download();

println!("Removing old...");
inst_pkg.remove();

println!("Upgraded.");
} else {
new_manifest.push(inst_pkg.clone());
Expand Down

0 comments on commit 4206d6d

Please sign in to comment.