mirror of
https://github.com/Jguer/yay
synced 2024-09-14 13:51:12 +00:00
Use pacman like text for ignorepkg and newerpkg
Now that we are using alpm to fetch packages it generates these mesages and we can not control the format. So change out format to match.
This commit is contained in:
parent
42a74c41c5
commit
dfe7738d6e
21
upgrade.go
21
upgrade.go
|
@ -268,10 +268,11 @@ func upAUR(
|
|||
func printIgnoringPackage(pkg alpm.Package, newPkgVersion string) {
|
||||
left, right := getVersionDiff(pkg.Version(), newPkgVersion)
|
||||
|
||||
fmt.Println(
|
||||
yellow(bold(smallArrow)) + fmt.Sprintf(
|
||||
" Ignoring package upgrade: %s (%s -> %s)",
|
||||
cyan(pkg.Name()), left, right))
|
||||
fmt.Printf("%s %s: ignoring package upgrade (%s => %s)\n",
|
||||
yellow(bold(smallArrow)),
|
||||
cyan(pkg.Name()),
|
||||
left, right,
|
||||
)
|
||||
}
|
||||
|
||||
func printLocalNewerThanAUR(
|
||||
|
@ -284,12 +285,12 @@ func printLocalNewerThanAUR(
|
|||
|
||||
left, right := getVersionDiff(pkg.Version(), aurPkg.Version)
|
||||
|
||||
if !isDevelName(pkg.Name()) &&
|
||||
alpm.VerCmp(pkg.Version(), aurPkg.Version) > 0 {
|
||||
fmt.Println(
|
||||
yellow(bold(smallArrow)) + fmt.Sprintf(
|
||||
" Local package is newer than AUR: %s (%s -> %s)",
|
||||
cyan(pkg.Name()), left, right))
|
||||
if !isDevelName(pkg.Name()) && alpm.VerCmp(pkg.Version(), aurPkg.Version) > 0 {
|
||||
fmt.Printf("%s %s: local (%s) is newer than AUR (%s)\n",
|
||||
yellow(bold(smallArrow)),
|
||||
cyan(pkg.Name()),
|
||||
left, right,
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue