use .SRCINFO if available

This commit is contained in:
2024-08-09 02:11:35 +02:00
parent 453c6d8a3a
commit 8dccbbee84
3 changed files with 39 additions and 0 deletions

View File

@@ -438,6 +438,12 @@ func (b *BuildManager) genQueue() ([]*ProtoPackage, error) {
continue
}
// try download srcinfo from repo
srcInfo, err := downloadSRCINFO(pkg.DBPackage.Pkgbase, state.TagRev)
if err == nil {
pkg.Srcinfo = srcInfo
}
if !pkg.isEligible(context.Background()) {
continue
}