added sync flag to html output

This commit is contained in:
2021-12-14 13:42:40 +01:00
parent b303531ce1
commit 4f5f6ecff7

View File

@@ -528,7 +528,7 @@ func (b *BuildManager) htmlWorker() {
statusTpl, err := template.ParseFiles("tpl/packages.html")
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(f.Close())