Treat whole split-package as devel when pkgbase matches too

Signed-off-by: Sergey Shatunov <me@prok.pw>
This commit is contained in:
Sergey Shatunov 2020-03-15 03:30:27 +07:00 committed by J Guerreiro
parent 942947fac4
commit 0e20e3cba0
2 changed files with 5 additions and 1 deletions

4
dep.go
View File

@ -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())
}

View File

@ -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()),