🚑️ fix panic
Some checks failed
ci/woodpecker/push/build Pipeline failed

This commit is contained in:
JMARyA 2025-04-27 19:29:50 +02:00
parent 36934fccfe
commit e488955e7a
Signed by: jmarya
GPG key ID: 901B2ADDF27C2263
2 changed files with 53 additions and 46 deletions

View file

@ -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`