Browse Source

build: Set snap grade "stable" for release candidates

Jakob Borg 8 years ago
parent
commit
63e0b53e8b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      build.go

+ 1 - 1
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{