summaryrefslogtreecommitdiffstats
path: root/cmd
diff options
context:
space:
mode:
authorUnknwon <joe2010xtmf@163.com>2014-10-06 19:12:52 -0400
committerUnknwon <joe2010xtmf@163.com>2014-10-06 19:12:52 -0400
commit1e1f9e716660533dc3c570b51006e4e36b2c3a7f (patch)
tree10ee985984524d4218f0cd03c6f98bccde92429f /cmd
parent64c68220d203cb07be001184cde4b35d4b503344 (diff)
downloadgitea-1e1f9e716660533dc3c570b51006e4e36b2c3a7f.tar.gz
gitea-1e1f9e716660533dc3c570b51006e4e36b2c3a7f.zip
Update with macaron
Diffstat (limited to 'cmd')
-rw-r--r--cmd/web.go10
1 files changed, 7 insertions, 3 deletions
diff --git a/cmd/web.go b/cmd/web.go
index 810e36d3bb..201eb48f0e 100644
--- a/cmd/web.go
+++ b/cmd/web.go
@@ -61,10 +61,14 @@ func checkVersion() {
log.Fatal(4, "Binary and template file version does not match, did you forget to recompile?")
}
- // Macaron.
+ // Check dependency version.
macaronVer := git.MustParseVersion(strings.Join(strings.Split(macaron.Version(), ".")[:3], "."))
- if macaronVer.LessThan(git.MustParseVersion("0.1.8")) {
- log.Fatal(4, "Macaron version does not match, did you forget to update?(github.com/Unknwon/macaron)")
+ if macaronVer.LessThan(git.MustParseVersion("0.2.0")) {
+ log.Fatal(4, "Macaron version is too old, did you forget to update?(github.com/Unknwon/macaron)")
+ }
+ i18nVer := git.MustParseVersion(i18n.Version())
+ if i18nVer.LessThan(git.MustParseVersion("0.0.1")) {
+ log.Fatal(4, "i18n version is too old, did you forget to update?(github.com/macaron-contrib/i18n)")
}
}