Skip to content

Commit

Permalink
build: Set snap grade "stable" for release candidates
Browse files Browse the repository at this point in the history
  • Loading branch information
calmh committed Feb 5, 2017
1 parent 1f586c0 commit 63e0b53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down

0 comments on commit 63e0b53

Please sign in to comment.