Skip to content

Commit

Permalink
Merge pull request #1616 from harshavardhana/tag1
Browse files Browse the repository at this point in the history
update: Change update tag to verify RELEASE instead of OFFICIAL
  • Loading branch information
harshavardhana committed Feb 19, 2016
2 parents 97110c9 + 253f136 commit 54761b2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions update-main.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,9 @@ func parseReleaseData(data string) (time.Time, *probe.Error) {
if releaseDateSplits[0] != "mc" {
return time.Time{}, probe.NewError(errors.New("Update data malformed, missing mc tag"))
}
if releaseDateSplits[1] != "OFFICIAL" {
return time.Time{}, probe.NewError(errors.New("Update data malformed, missing OFFICIAL tag"))
// "OFFICIAL" tag is still kept for backward compatibility, we should remove this for the next release.
if releaseDateSplits[1] != "RELEASE" && releaseDateSplits[1] != "OFFICIAL" {
return time.Time{}, probe.NewError(errors.New("Update data malformed, missing RELEASE tag"))
}
dateSplits := strings.SplitN(releaseDateSplits[2], "T", 2)
if len(dateSplits) < 2 {
Expand Down

0 comments on commit 54761b2

Please sign in to comment.