Dropped the template version check

This commit is contained in:
Thomas Boerger 2016-11-30 11:14:16 +01:00
parent fdca271e20
commit 206c8c45f2
No known key found for this signature in database
GPG Key ID: 5A388F55283960B6
2 changed files with 0 additions and 16 deletions

View File

@ -76,21 +76,6 @@ type VerChecker struct {
// checkVersion checks if binary matches the version of templates files. // checkVersion checks if binary matches the version of templates files.
func checkVersion() { func checkVersion() {
// Templates.
data, err := ioutil.ReadFile(setting.StaticRootPath + "/templates/.VERSION")
if err != nil {
log.Fatal(4, "Fail to read 'templates/.VERSION': %v", err)
}
tplVer := string(data)
if tplVer != setting.AppVer {
if version.Compare(tplVer, setting.AppVer, ">") {
log.Fatal(4, "Binary version is lower than template file version, did you forget to recompile Gogs?")
} else {
log.Fatal(4, "Binary version is higher than template file version, did you forget to update template files?")
}
}
// Check dependency version.
checkers := []VerChecker{ checkers := []VerChecker{
{"github.com/go-xorm/xorm", func() string { return xorm.Version }, "0.5.5"}, {"github.com/go-xorm/xorm", func() string { return xorm.Version }, "0.5.5"},
{"github.com/go-macaron/binding", binding.Version, "0.3.2"}, {"github.com/go-macaron/binding", binding.Version, "0.3.2"},

View File

@ -1 +0,0 @@
0.9.99.0915