handle broken dependencies

This commit is contained in:
2021-07-27 18:42:37 +02:00
parent a433b8144c
commit 1ee2cc1ea8

View File

@@ -274,13 +274,15 @@ func (b *BuildManager) parseWorker() {
continue
}
isLatest, err := isMirrorLatest(alpmHandle, pkg)
if err != nil {
log.Warningf("[%s/%s] Problem solving dependencies: %v", pkg.FullRepo, info.Pkgbase, err)
}
dbLock.Lock()
dbPkg = dbPkg.Update().SetStatus(QUEUED).SaveX(context.Background())
dbLock.Unlock()
isLatest, err := isMirrorLatest(alpmHandle, pkg)
check(err)
if !isLatest {
log.Infof("Delayed %s: not all dependencies are up to date", info.Pkgbase)
dbLock.Lock()