skip packages with unresolvable dependencies

This commit is contained in:
2021-08-26 12:59:23 +02:00
parent a80b5d4c56
commit e835a54745
2 changed files with 12 additions and 1 deletions

View File

@@ -280,6 +280,14 @@ func (b *BuildManager) parseWorker() {
b.repoPurge[pkg.FullRepo] <- pkg
b.parseWG.Done()
continue
case UnableToSatisfyError:
log.Debugf("Skipped %s: unable to resolve dependencies: %v", info.Pkgbase, err)
dbLock.Lock()
dbPkg = dbPkg.Update().SetStatus(SKIPPED).SetSkipReason("unable to resolve dependencies").SaveX(context.Background())
dbLock.Unlock()
b.repoPurge[pkg.FullRepo] <- pkg
b.parseWG.Done()
continue
}
}