From 24d8b571722d901bb25db693d62c4ae8b515fe33 Mon Sep 17 00:00:00 2001 From: morganamilo Date: Thu, 15 Feb 2018 03:38:19 +0000 Subject: [PATCH] Use -Ru instead of -R when removing make depends When installing a package might be a dependancy for something and a make dependancy for something else. This means when prompted to remove make dependencies yay might also try to remove a package that is actually needed causing a pacman error. Adding the -u option will cause pacman to skip needed packages and give a nice warning as it does so. It does not fix the root issue but works for now. --- install.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.go b/install.go index 6b985cb2..b2c27cdd 100644 --- a/install.go +++ b/install.go @@ -136,7 +136,7 @@ func install(parser *arguments) error { } removeArguments := makeArguments() - removeArguments.addOP("R") + removeArguments.addArg("R", "u") for _, pkg := range dc.RepoMake { removeArguments.addTarget(pkg.Name())