Re add isDevelName()

This commit is contained in:
morganamilo committed 2018-05-29 13:15:45 +01:00
1 parent 6e990e4dc5
commit 6df8c58e00
1 file changed
+10
+10
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-")
}