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:
morganamilo 2018-07-03 13:42:13 +01:00
parent a97034fc8b
commit 43c52c69d2
No known key found for this signature in database
GPG key ID: 6FE9E7996B0B082E

View file

@ -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 {