added --needed flag

i18n
jnats 3 years ago
parent f0e1e8b863
commit d78190b262

@ -100,6 +100,7 @@ pub fn clone(noconfirm: bool, pkg: &str) {
let install_result = Command::new("makepkg")
.arg("-si")
.arg("--noconfirm")
.arg("--needed")
.status();
match install_result {
Ok(_) => {
@ -113,6 +114,7 @@ pub fn clone(noconfirm: bool, pkg: &str) {
sec(format!("Installing {} ...", pkg));
let install_result = Command::new("makepkg")
.arg("-si")
.arg("--needed")
.status()
.expect("Couldn't call makepkg");
match install_result.code() {

@ -7,6 +7,7 @@ pub fn install(noconfirm: bool, pkg: &str) {
let result = Command::new("pacman")
.arg("-Sy")
.arg("--noconfirm")
.arg("--needed")
.args(&pkgs)
.status()
.expect("Couldn't call pacman");
@ -18,6 +19,7 @@ pub fn install(noconfirm: bool, pkg: &str) {
} else {
let result = Command::new("pacman")
.arg("-Sy")
.arg("--needed")
.args(&pkgs)
.status()
.expect("Couldn't call pacman");

Loading…
Cancel
Save