handle build error

This commit is contained in:
Giovanni Harting 2023-05-21 21:29:38 +02:00
parent 3acaaa816c
commit f8a0bbd80c

View File

@ -114,6 +114,9 @@ func (b *BuildManager) buildQueue(queue []*ProtoPackage, ctx context.Context) er
b.repoPurge[pkg.FullRepo] <- []*ProtoPackage{pkg}
} else if err == nil {
log.Infof("[Q] build successful: %s->%s (%s)", pkg.FullRepo, pkg.Pkgbase, dur)
} else if err != nil {
log.Warningf("[Q] error building package %s->%s in %s: %s", pkg.FullRepo, pkg.Pkgbase, dur, err)
b.repoPurge[pkg.FullRepo] <- []*ProtoPackage{pkg}
}
doneQLock.Lock()
b.buildingLock.Lock()