🚑️ fix pkg info
All checks were successful
ci/woodpecker/push/build Pipeline was successful

This commit is contained in:
JMARyA 2025-04-17 03:26:07 +02:00
parent a3d4e1cee6
commit c91e43b65f
Signed by: jmarya
GPG key ID: 901B2ADDF27C2263

View file

@ -56,9 +56,7 @@ async fn launch(config: String) {
..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,
@ -71,8 +69,7 @@ async fn launch(config: String) {
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)
.launch() .launch()
@ -307,7 +304,8 @@ async fn main() {
std::fs::copy("/usr/share/pacman/PKGBUILD.proto", "PKGBUILD").unwrap(); std::fs::copy("/usr/share/pacman/PKGBUILD.proto", "PKGBUILD").unwrap();
} }
cli::PackageCommands::Info(_) => { cli::PackageCommands::Info(_) => {
run_cmd!(makepkg - -printsrcinfo - -sync).unwrap(); #[rustfmt::skip]
run_cmd!(makepkg --printsrcinfo -s).unwrap();
} }
cli::PackageCommands::Push(package_push_command) => { cli::PackageCommands::Push(package_push_command) => {
pacco_push( pacco_push(