mirror of
https://github.com/Jguer/yay
synced 2024-10-31 04:12:51 +00:00
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:
parent
4075d37246
commit
24d8b57172
1 changed files with 1 additions and 1 deletions
|
@ -136,7 +136,7 @@ func install(parser *arguments) error {
|
||||||
}
|
}
|
||||||
|
|
||||||
removeArguments := makeArguments()
|
removeArguments := makeArguments()
|
||||||
removeArguments.addOP("R")
|
removeArguments.addArg("R", "u")
|
||||||
|
|
||||||
for _, pkg := range dc.RepoMake {
|
for _, pkg := range dc.RepoMake {
|
||||||
removeArguments.addTarget(pkg.Name())
|
removeArguments.addTarget(pkg.Name())
|
||||||
|
|
Loading…
Reference in a new issue