forked from ALHP/ALHP.GO
set status accordingly if package gets skipped
This commit is contained in:
8
main.go
8
main.go
@@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user