mirror of
https://github.com/Jguer/yay
synced 2024-10-15 20:42:19 +00:00
Remove printing conflict name in conflicts
Currently when printing conflicts the package name is printed and then name of the conflict if it differs from the package name. For example if yay-git is installed and you are installing yay-bin: yay-bin conflicts with yay yay-git provides yay so the conflict is printed as "yay-bin (yay)" This is not too bad but some packages have many provides and conflicts that ends up cluttering the output. For example if gvim is installed and you are installing vim: "gvim, gvim (vim-minimal), gvim (vim)" is printed Just printing the package name should be enough information. If not the user can always -Si either package.
This commit is contained in:
parent
ff4f076d57
commit
5080e400e1
11
depCheck.go
11
depCheck.go
|
@ -128,9 +128,6 @@ func (ds *depSolver) checkForwardConflict(name string, conflict string, conflict
|
|||
|
||||
if satisfiesRepo(conflict, &pkg) {
|
||||
n := pkg.Name()
|
||||
if n != conflict {
|
||||
n += " (" + conflict + ")"
|
||||
}
|
||||
conflicts.Add(name, n)
|
||||
}
|
||||
|
||||
|
@ -146,10 +143,6 @@ func (ds *depSolver) checkReverseConflict(name string, conflict string, conflict
|
|||
}
|
||||
|
||||
if satisfiesAur(conflict, pkg) {
|
||||
if name != conflict {
|
||||
name += " (" + conflict + ")"
|
||||
}
|
||||
|
||||
conflicts.Add(pkg.Name, name)
|
||||
}
|
||||
}
|
||||
|
@ -161,10 +154,6 @@ func (ds *depSolver) checkReverseConflict(name string, conflict string, conflict
|
|||
}
|
||||
|
||||
if satisfiesRepo(conflict, pkg) {
|
||||
if name != conflict {
|
||||
name += " (" + conflict + ")"
|
||||
}
|
||||
|
||||
conflicts.Add(pkg.Name(), name)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue