removed alpm lock

This commit is contained in:
2021-07-27 16:24:30 +02:00
parent e28d85b10d
commit af6e8cfa74
2 changed files with 1 additions and 6 deletions

View File

@@ -455,7 +455,6 @@ func setupMakepkg(march string) {
}
func isMirrorLatest(h *alpm.Handle, buildPkg *BuildPackage) (bool, error) {
alpmLock.Lock()
dbs, err := h.SyncDBs()
if err != nil {
return false, err
@@ -481,7 +480,6 @@ func isMirrorLatest(h *alpm.Handle, buildPkg *BuildPackage) (bool, error) {
return false, nil
}
}
alpmLock.Unlock()
return true, nil
}