mirror of
https://github.com/Jguer/yay
synced 2024-08-31 21:58:39 +00:00
Ensure AUR upgrades actually use the AUR
Yay's dependency resolving takes provides into account. When upgrading AUR package 'foo', if a repo package provides 'foo' then yay would get confused and pull in the package providing 'foo' instead of the AUR package. This commit ensures AUR upgrades always exclusively check the AUR.
This commit is contained in:
parent
6c5c6ab8f6
commit
08ac9036ad
|
@ -93,7 +93,8 @@ func install(parser *arguments) error {
|
|||
}
|
||||
|
||||
for up := range aurUp {
|
||||
requestTargets = append(requestTargets, up)
|
||||
requestTargets = append(requestTargets, "aur/" + up)
|
||||
parser.addTarget("aur/" + up)
|
||||
}
|
||||
|
||||
value, _, exists := cmdArgs.getArg("ignore")
|
||||
|
@ -105,10 +106,6 @@ func install(parser *arguments) error {
|
|||
}
|
||||
arguments.options["ignore"] = ignoreStr
|
||||
}
|
||||
|
||||
for pkg := range aurUp {
|
||||
parser.addTarget(pkg)
|
||||
}
|
||||
}
|
||||
|
||||
targets := sliceToStringSet(parser.targets)
|
||||
|
|
Loading…
Reference in a new issue