added pkgbuild path to db

This commit is contained in:
2022-08-14 17:20:34 +02:00
parent 05f36bef88
commit 5ea43c896f
9 changed files with 302 additions and 2 deletions

View File

@@ -185,6 +185,8 @@ func (b *BuildManager) refreshSRCINFOs(ctx context.Context, path string) error {
if err != nil {
log.Infof("Unable to determine status for package %s: %v", proto.Pkgbase, err)
b.repoPurge[proto.FullRepo] <- []*ProtoPackage{proto}
} else {
proto.DbPackage.Update().SetPkgbuild(proto.Pkgbuild)
}
}
}
@@ -313,6 +315,7 @@ func genQueue() ([]*ProtoPackage, error) {
FullRepo: pkg.Repository.String() + "-" + pkg.March,
Hash: pkg.Hash,
DbPackage: pkg,
Pkgbuild: pkg.Pkgbuild,
})
}
return pkgbuilds, nil