This commit is contained in:
parent
36934fccfe
commit
e488955e7a
2 changed files with 53 additions and 46 deletions
|
@ -57,7 +57,7 @@ impl MirrorRepository {
|
|||
})
|
||||
.collect();
|
||||
|
||||
let data = rally(mirrorlist_links, |input| {
|
||||
if let Some(data) = rally(mirrorlist_links, |input| {
|
||||
let (mirror, url, file_path) = input;
|
||||
|
||||
let client = reqwest::blocking::Client::new();
|
||||
|
@ -73,10 +73,11 @@ impl MirrorRepository {
|
|||
}
|
||||
|
||||
None
|
||||
});
|
||||
// log::error!("Downloading {url} failed. No mirror could provide a valid response.");
|
||||
|
||||
std::fs::write(file_path, data.1).unwrap();
|
||||
}) {
|
||||
std::fs::write(file_path, data.1).unwrap();
|
||||
} else {
|
||||
log::error!("Downloading {url} failed. No mirror could provide a valid response.");
|
||||
}
|
||||
}
|
||||
|
||||
/// Get the `.db.tar.gz` content for the repository of `arch`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue