From 253f13640cab4b181c2fdccd09d36b38f5b2c74e Mon Sep 17 00:00:00 2001 From: Harshavardhana Date: Thu, 18 Feb 2016 19:55:20 -0800 Subject: [PATCH] update: Change update tag to verify RELEASE instead of OFFICIAL --- update-main.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/update-main.go b/update-main.go index 25117c25..d9bd2c4e 100644 --- a/update-main.go +++ b/update-main.go @@ -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 {