diff --git a/src/pkg/mirror.rs b/src/pkg/mirror.rs index d8efbfb..ab17993 100644 --- a/src/pkg/mirror.rs +++ b/src/pkg/mirror.rs @@ -30,12 +30,13 @@ impl MirrorRepository { log::info!("Trying mirror {url}"); let client = reqwest::Client::new(); - if let Ok(resp) = client.get(url).send().await { + if let Ok(resp) = client.get(&url).send().await { if resp.status().is_success() { let data = resp.bytes().await.unwrap().to_vec(); let parent = file_path.parent().unwrap(); std::fs::create_dir_all(parent).unwrap(); + log::info!("Downloaded {url}"); std::fs::write(file_path, data).unwrap(); return; } else {