From 63e0b53e8b24c614a6038ee9989a1e182e990a98 Mon Sep 17 00:00:00 2001 From: Jakob Borg Date: Sun, 5 Feb 2017 14:42:29 +0100 Subject: [PATCH] build: Set snap grade "stable" for release candidates --- build.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.go b/build.go index 349264ef3..e08ce19a2 100644 --- a/build.go +++ b/build.go @@ -585,7 +585,7 @@ func buildSnap(target target) { snapver = snapver[1:] } snapgrade := "devel" - if matched, _ := regexp.MatchString(`^\d+\.\d+\.\d+$`, snapver); matched { + if matched, _ := regexp.MatchString(`^\d+\.\d+\.\d+(-rc.\d+)?$`, snapver); matched { snapgrade = "stable" } err = tmpl.Execute(f, map[string]string{