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()
|
||||
})
|
||||
.mount_assets()
|
||||
.mount(
|
||||
"/",
|
||||
routes![
|
||||
.mount("/", routes![
|
||||
routes::index_page,
|
||||
routes::pkg_route,
|
||||
routes::push::upload_pkg,
|
||||
|
@ -71,8 +69,7 @@ async fn launch(config: String) {
|
|||
routes::user::end_session,
|
||||
routes::user::change_password,
|
||||
routes::user::change_password_post
|
||||
],
|
||||
)
|
||||
])
|
||||
.manage(config)
|
||||
.manage(shell)
|
||||
.launch()
|
||||
|
@ -307,7 +304,8 @@ async fn main() {
|
|||
std::fs::copy("/usr/share/pacman/PKGBUILD.proto", "PKGBUILD").unwrap();
|
||||
}
|
||||
cli::PackageCommands::Info(_) => {
|
||||
run_cmd!(makepkg - -printsrcinfo - -sync).unwrap();
|
||||
#[rustfmt::skip]
|
||||
run_cmd!(makepkg --printsrcinfo -s).unwrap();
|
||||
}
|
||||
cli::PackageCommands::Push(package_push_command) => {
|
||||
pacco_push(
|
||||
|
|
Loading…
Add table
Reference in a new issue