Re add isDevelName()

This commit is contained in:
morganamilo 2018-05-19 06:07:58 +01:00
parent 6e990e4dc5
commit 6df8c58e00
No known key found for this signature in database
GPG Key ID: 6FE9E7996B0B082E

10
dep.go
View File

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