1
0
mirror of https://github.com/minio/mc.git synced 2025-11-14 23:42:27 +03:00

Moving to 'go run make.go', all builds are release builds for now

This commit is contained in:
Harshavardhana
2015-06-05 18:00:03 -07:00
parent 760e32a2a9
commit d320b5c0ec
6 changed files with 129 additions and 82 deletions

View File

@@ -58,9 +58,9 @@ func doUpdateCheck(config *hostConfig) (string, error) {
if err != nil {
return "No new update available at this time", nil
}
current, _ := time.Parse(time.RFC3339Nano, BuildDate)
current, _ := time.Parse(time.RFC3339Nano, Version)
if current.IsZero() {
return "BuildDate is empty, must be a custom build cannot update", nil
return "Version is empty, must be a custom build cannot update. Please download releases from http://dl.minio.io:9000 for proper updates", nil
}
if latest.Time.After(current) {
printUpdateNotify("new", "old")