forked from ALHP/ALHP.GO
added availability check before package is created in database
This commit is contained in:
@@ -588,6 +588,11 @@ func (b *BuildManager) genQueue() ([]*ProtoPackage, error) {
|
|||||||
Arch: arch,
|
Arch: arch,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if !pkg.isAvailable(alpmHandle) {
|
||||||
|
log.Debugf("[QG] %s->%s not available on mirror, skipping build", pkg.FullRepo, pkg.Pkgbase)
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
|
||||||
err = pkg.toDBPackage(true)
|
err = pkg.toDBPackage(true)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Warningf("[QG] error getting/creating dbpackage %s: %v", state.Pkgbase, err)
|
log.Warningf("[QG] error getting/creating dbpackage %s: %v", state.Pkgbase, err)
|
||||||
|
Reference in New Issue
Block a user