1
0
forked from ALHP/ALHP.GO

added skipreason if waiting on mirror

This commit is contained in:
2021-07-27 16:48:19 +02:00
parent af6e8cfa74
commit a433b8144c

View File

@@ -69,7 +69,7 @@ func (b *BuildManager) buildWorker(id int) {
dbPkg := getDbPackage(pkg) dbPkg := getDbPackage(pkg)
dbLock.Lock() dbLock.Lock()
dbPkg.Update().SetStatus(BUILDING).SaveX(context.Background()) dbPkg.Update().SetStatus(BUILDING).SetSkipReason("").SaveX(context.Background())
dbLock.Unlock() dbLock.Unlock()
err := importKeys(pkg) err := importKeys(pkg)
@@ -283,6 +283,9 @@ func (b *BuildManager) parseWorker() {
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()
dbPkg = dbPkg.Update().SetSkipReason("waiting for mirror").SaveX(context.Background())
dbLock.Unlock()
b.parseWG.Done() b.parseWG.Done()
continue continue
} }