mirror of
https://github.com/Jguer/yay.git
synced 2024-11-06 17:17:22 +01:00
Re add isDevelName()
This commit is contained in:
parent
6e990e4dc5
commit
6df8c58e00
10
dep.go
10
dep.go
@ -158,3 +158,13 @@ func getBases(pkgs map[string]*rpc.Pkg) map[string][]*rpc.Pkg {
|
||||
|
||||
return bases
|
||||
}
|
||||
|
||||
func isDevelName(name string) bool {
|
||||
for _, suffix := range []string{"git", "svn", "hg", "bzr", "nightly"} {
|
||||
if strings.HasSuffix(name, "-" + suffix) {
|
||||
return true
|
||||
}
|
||||
}
|
||||
|
||||
return strings.Contains(name, "-always-")
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user