mirror of
https://github.com/octoleo/syncthing.git
synced 2025-01-22 22:58:25 +00:00
Aggregate v0.10
This commit is contained in:
parent
525aac74aa
commit
ca96b13233
@ -22,12 +22,13 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
keyFile = getEnvDefault("UR_KEY_FILE", "key.pem")
|
keyFile = getEnvDefault("UR_KEY_FILE", "key.pem")
|
||||||
certFile = getEnvDefault("UR_CRT_FILE", "crt.pem")
|
certFile = getEnvDefault("UR_CRT_FILE", "crt.pem")
|
||||||
dbConn = getEnvDefault("UR_DB_URL", "postgres://user:password@localhost/ur?sslmode=disable")
|
dbConn = getEnvDefault("UR_DB_URL", "postgres://user:password@localhost/ur?sslmode=disable")
|
||||||
listenAddr = getEnvDefault("UR_LISTEN", "0.0.0.0:8443")
|
listenAddr = getEnvDefault("UR_LISTEN", "0.0.0.0:8443")
|
||||||
tpl *template.Template
|
tpl *template.Template
|
||||||
compilerRe = regexp.MustCompile(`\(([A-Za-z0-9()., -]+) [\w-]+ \w+\) ([\w@-]+)`)
|
compilerRe = regexp.MustCompile(`\(([A-Za-z0-9()., -]+) [\w-]+ \w+\) ([\w@-]+)`)
|
||||||
|
aggregateVersions = []string{"v0.7", "v0.8", "v0.9", "v0.10"}
|
||||||
)
|
)
|
||||||
|
|
||||||
var funcs = map[string]interface{}{
|
var funcs = map[string]interface{}{
|
||||||
@ -444,14 +445,10 @@ func transformVersion(v string) string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Truncate old versions to just the generation part
|
// Truncate old versions to just the generation part
|
||||||
if strings.HasPrefix(v, "v0.7") {
|
for _, agg := range aggregateVersions {
|
||||||
return "v0.7.x"
|
if strings.HasPrefix(v, agg) {
|
||||||
}
|
return agg + ".x"
|
||||||
if strings.HasPrefix(v, "v0.8") {
|
}
|
||||||
return "v0.8.x"
|
|
||||||
}
|
|
||||||
if strings.HasPrefix(v, "v0.9") {
|
|
||||||
return "v0.9.x"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return v
|
return v
|
||||||
|
Loading…
x
Reference in New Issue
Block a user