Fix paths and identifiers

This commit is contained in:
Daniel
2019-07-30 13:07:33 +02:00
parent ae79877a3f
commit c6332dda7d
4 changed files with 14 additions and 8 deletions

View File

@@ -4,6 +4,7 @@ import (
"errors"
"os"
"path/filepath"
"runtime"
"github.com/safing/portbase/database"
"github.com/safing/portbase/info"
@@ -15,6 +16,7 @@ import (
var (
updateStoragePath string
downloadTmpPath string
isWindows = runtime.GOOS == "windows"
)
// SetDatabaseRoot tells the updates module where the database is - and where to put its stuff.
@@ -66,7 +68,7 @@ func start() error {
err = UpdateIndexes()
if err != nil {
return err
log.Errorf("updates: failed to download update index: %s", err)
}
} else {
return err