From ade2ff6a0fd62f35185bc38f40883452ea1dbe5b Mon Sep 17 00:00:00 2001 From: jnats Date: Sat, 24 Jul 2021 20:32:55 +0100 Subject: [PATCH] fixing up installation yet again --- src/clone.rs | 5 ++--- src/help.rs | 2 +- src/main.rs | 2 +- src/uninstall.rs | 2 +- 4 files changed, 5 insertions(+), 6 deletions(-) diff --git a/src/clone.rs b/src/clone.rs index 4941350..fbb808d 100644 --- a/src/clone.rs +++ b/src/clone.rs @@ -18,8 +18,7 @@ pub fn clone(pkg: &str) { env::set_current_dir(&cachedir); Command::new("makepkg") .arg("-i") - .spawn() - .expect(&error); + .arg("--noconfirm") + .spawn(); } } - diff --git a/src/help.rs b/src/help.rs index f9632a9..049f206 100644 --- a/src/help.rs +++ b/src/help.rs @@ -5,4 +5,4 @@ ame -S - install a package ame -R - remove a package ame -Syu - system upgrade ame -Ss - search for a package") -} +} \ No newline at end of file diff --git a/src/main.rs b/src/main.rs index a7ea3b8..2dbc4c6 100644 --- a/src/main.rs +++ b/src/main.rs @@ -40,4 +40,4 @@ fn main() { help(); exit(0); } -} +} \ No newline at end of file diff --git a/src/uninstall.rs b/src/uninstall.rs index c28021c..de2a2d8 100644 --- a/src/uninstall.rs +++ b/src/uninstall.rs @@ -9,4 +9,4 @@ pub fn uninstall(pkg: &str) { .spawn() //.status() TODO: for some reason cant use both .spawn and .status at the same time, need fix .expect(&errstr); -} +} \ No newline at end of file