1
0
forked from ALHP/ALHP.GO

set status accordingly if package gets skipped

This commit is contained in:
2021-12-03 13:22:32 +01:00
parent 0690ec28d2
commit 3afedf6369

View File

@@ -263,6 +263,14 @@ func (b *BuildManager) parseWorker() {
if !pkg.isAvailable(alpmHandle) {
log.Debugf("[%s/%s] Not available on mirror, skipping build", pkg.FullRepo, pkg.Pkgbase)
pkg.toDbPackage(false)
if pkg.DbPackage != nil {
err := pkg.DbPackage.Update().SetStatus(dbpackage.StatusSkipped).SetSkipReason("package not present on mirror").Exec(context.Background())
if err != nil {
log.Warningf("Error updating package %s: %v", pkg.Pkgbase, err)
}
}
b.parseWG.Done()
continue
}