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.
This commit is contained in:
morganamilo committed 2018-02-15 21:41:49 +00:00
1 parent 4075d37246
commit 24d8b57172
1 file changed
+1 -1
+1 -1
View File
@@ -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())