mirror of
https://github.com/Jguer/yay
synced 2024-08-31 05:39:29 +00: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-")
|
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)
|
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",
|
fmt.Printf("%s %s: local (%s) is newer than AUR (%s)\n",
|
||||||
yellow(bold(smallArrow)),
|
yellow(bold(smallArrow)),
|
||||||
cyan(pkg.Name()),
|
cyan(pkg.Name()),
|
||||||
|
|
Loading…
Reference in a new issue