♻️ refactor
Some checks failed
ci/woodpecker/push/build Pipeline failed

This commit is contained in:
JMARyA 2025-04-01 13:33:16 +02:00
parent b721c21d9f
commit b33439656a
Signed by: jmarya
GPG key ID: 901B2ADDF27C2263
3 changed files with 315 additions and 197 deletions

474
Cargo.lock generated

File diff suppressed because it is too large Load diff

View file

@ -51,9 +51,7 @@ async fn launch() -> _ {
..Default::default() ..Default::default()
}) })
.mount_assets() .mount_assets()
.mount( .mount("/", routes![
"/",
routes![
routes::index_page, routes::index_page,
routes::pkg_route, routes::pkg_route,
routes::push::upload_pkg, routes::push::upload_pkg,
@ -66,8 +64,7 @@ async fn launch() -> _ {
routes::user::end_session, routes::user::end_session,
routes::user::change_password, routes::user::change_password,
routes::user::change_password_post routes::user::change_password_post
], ])
)
.manage(config) .manage(config)
.manage(shell) .manage(shell)
} }

View file

@ -66,12 +66,9 @@ impl MirrorRepository {
None None
}); });
// log::error!("Downloading {url} failed. No mirror could provide a valid response.");
if let Some(data) = data.1 { std::fs::write(file_path, data.1).unwrap();
std::fs::write(file_path, data).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` /// Get the `.db.tar.gz` content for the repository of `arch`