forked from ALHP/ALHP.GO
added skipreason if waiting on mirror
This commit is contained in:
5
main.go
5
main.go
@@ -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
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user