diff options
Diffstat (limited to 'src/commands/download.rs')
-rw-r--r-- | src/commands/download.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/commands/download.rs b/src/commands/download.rs index ebfb4eb..6831714 100644 --- a/src/commands/download.rs +++ b/src/commands/download.rs | |||
@@ -1,3 +1,4 @@ | |||
1 | |||
1 | use crate::{config::Cfg, List}; | 2 | use crate::{config::Cfg, List}; |
2 | use crate::{ | 3 | use crate::{ |
3 | db::userlist_get_all_current_versions_with_mods, | 4 | db::userlist_get_all_current_versions_with_mods, |
@@ -9,7 +10,6 @@ use crate::{ | |||
9 | }; | 10 | }; |
10 | 11 | ||
11 | pub async fn download(config: Cfg, liststack: Vec<List>, clean: bool, delete_old: bool) -> MLE<()> { | 12 | pub async fn download(config: Cfg, liststack: Vec<List>, clean: bool, delete_old: bool) -> MLE<()> { |
12 | |||
13 | for current_list in liststack { | 13 | for current_list in liststack { |
14 | println!("Downloading current versions of mods in {}", current_list.id); | 14 | println!("Downloading current versions of mods in {}", current_list.id); |
15 | let downloaded_versions = get_downloaded_versions(current_list.clone())?; | 15 | let downloaded_versions = get_downloaded_versions(current_list.clone())?; |
@@ -63,7 +63,7 @@ pub async fn download(config: Cfg, liststack: Vec<List>, clean: bool, delete_old | |||
63 | if !to_disable.is_empty() { | 63 | if !to_disable.is_empty() { |
64 | for ver in to_disable { | 64 | for ver in to_disable { |
65 | if delete_old { | 65 | if delete_old { |
66 | println!("Deleting version {} for mod {}", ver.1, ver.0); | 66 | // println!("Deleting version {} for mod {}", ver.1, ver.0); |
67 | delete_version(current_list.clone(), ver.1)?; | 67 | delete_version(current_list.clone(), ver.1)?; |
68 | } else { | 68 | } else { |
69 | disable_version(config.clone(), current_list.clone(), ver.1, ver.0)?; | 69 | disable_version(config.clone(), current_list.clone(), ver.1, ver.0)?; |