mirror of
https://github.com/Jguer/yay.git
synced 2024-11-06 17:17:22 +01:00
Treat whole split-package as devel when pkgbase matches too
Signed-off-by: Sergey Shatunov <me@prok.pw>
This commit is contained in:
parent
942947fac4
commit
0e20e3cba0
4
dep.go
4
dep.go
@ -172,3 +172,7 @@ func isDevelName(name string) bool {
|
||||
|
||||
return strings.Contains(name, "-always-")
|
||||
}
|
||||
|
||||
func isDevelPackage(pkg alpm.Package) bool {
|
||||
return isDevelName(pkg.Name()) || isDevelName(pkg.Base())
|
||||
}
|
||||
|
@ -286,7 +286,7 @@ func printLocalNewerThanAUR(
|
||||
|
||||
left, right := getVersionDiff(pkg.Version(), aurPkg.Version)
|
||||
|
||||
if !isDevelName(pkg.Name()) && alpm.VerCmp(pkg.Version(), aurPkg.Version) > 0 {
|
||||
if !isDevelPackage(pkg) && 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()),
|
||||
|
Loading…
Reference in New Issue
Block a user