mirror of
https://github.com/Jguer/yay
synced 2024-10-05 23:59:13 +00:00
Also remove -u when not doing combined upgrade
When not doing combined upgrade we do pacman -Syu early. So there is no need to use -u when installing repo dependencies of AUR packages.
This commit is contained in:
parent
a97034fc8b
commit
43c52c69d2
|
@ -160,6 +160,10 @@ func install(parser *arguments) error {
|
|||
}
|
||||
|
||||
if len(dp.Aur) == 0 {
|
||||
if !config.CombinedUpgrade {
|
||||
return nil
|
||||
}
|
||||
|
||||
parser.op = "S"
|
||||
parser.delArg("y", "refresh")
|
||||
parser.options["ignore"] = arguments.options["ignore"]
|
||||
|
@ -294,6 +298,10 @@ func install(parser *arguments) error {
|
|||
}
|
||||
}
|
||||
|
||||
if !config.CombinedUpgrade {
|
||||
arguments.delArg("u", "sysupgrade")
|
||||
}
|
||||
|
||||
if len(arguments.targets) > 0 || arguments.existsArg("u") {
|
||||
err := passToPacman(arguments)
|
||||
if err != nil {
|
||||
|
|
Loading…
Reference in a new issue