This commit is contained in:
parent
a3d4e1cee6
commit
c91e43b65f
1 changed files with 16 additions and 18 deletions
10
src/main.rs
10
src/main.rs
|
@ -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(
|
||||||
|
|
Loading…
Add table
Reference in a new issue