forked from ALHP/ALHP.GO
added sync flag to html output
This commit is contained in:
2
main.go
2
main.go
@@ -528,7 +528,7 @@ func (b *BuildManager) htmlWorker() {
|
|||||||
statusTpl, err := template.ParseFiles("tpl/packages.html")
|
statusTpl, err := template.ParseFiles("tpl/packages.html")
|
||||||
check(err)
|
check(err)
|
||||||
|
|
||||||
f, err := os.OpenFile(filepath.Join(conf.Basedir.Repo, "packages.html"), os.O_WRONLY|os.O_CREATE|os.O_TRUNC, 0644)
|
f, err := os.OpenFile(filepath.Join(conf.Basedir.Repo, "packages.html"), os.O_WRONLY|os.O_CREATE|os.O_TRUNC|os.O_SYNC, 0644)
|
||||||
check(statusTpl.Execute(f, gen))
|
check(statusTpl.Execute(f, gen))
|
||||||
check(f.Close())
|
check(f.Close())
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user