forked from ALHP/ALHP.GO
handle broken dependencies
This commit is contained in:
8
main.go
8
main.go
@@ -274,13 +274,15 @@ func (b *BuildManager) parseWorker() {
|
|||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
|
isLatest, err := isMirrorLatest(alpmHandle, pkg)
|
||||||
|
if err != nil {
|
||||||
|
log.Warningf("[%s/%s] Problem solving dependencies: %v", pkg.FullRepo, info.Pkgbase, err)
|
||||||
|
}
|
||||||
|
|
||||||
dbLock.Lock()
|
dbLock.Lock()
|
||||||
dbPkg = dbPkg.Update().SetStatus(QUEUED).SaveX(context.Background())
|
dbPkg = dbPkg.Update().SetStatus(QUEUED).SaveX(context.Background())
|
||||||
dbLock.Unlock()
|
dbLock.Unlock()
|
||||||
|
|
||||||
isLatest, err := isMirrorLatest(alpmHandle, pkg)
|
|
||||||
check(err)
|
|
||||||
|
|
||||||
if !isLatest {
|
if !isLatest {
|
||||||
log.Infof("Delayed %s: not all dependencies are up to date", info.Pkgbase)
|
log.Infof("Delayed %s: not all dependencies are up to date", info.Pkgbase)
|
||||||
dbLock.Lock()
|
dbLock.Lock()
|
||||||
|
Reference in New Issue
Block a user