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 2018-02-15 03:38:19 +00:00
parent 4075d37246
commit 24d8b57172
No known key found for this signature in database
GPG key ID: 6FE9E7996B0B082E

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())