Loop over srcinfos instead of pkglist in gendb

This commit is contained in:
morganamilo 2018-08-03 00:36:47 +01:00
parent 2de67d1b24
commit 602f386b03
No known key found for this signature in database
GPG Key ID: 6FE9E7996B0B082E

11
vcs.go
View File

@ -49,15 +49,10 @@ func createDevelDB() error {
downloadPkgBuilds(info, bases, toSkip)
tryParsesrcinfosFile(info, srcinfosStale, bases)
for _, pkg := range info {
pkgbuild, ok := srcinfosStale[pkg.PackageBase]
if !ok {
continue
}
for _, pkg := range bases[pkg.PackageBase] {
for _, pkgbuild := range srcinfosStale {
for _, pkg := range pkgbuild.Packages {
wg.Add(1)
go updateVCSData(pkg.Name, pkgbuild.Source, &mux, &wg)
go updateVCSData(pkg.Pkgname, pkgbuild.Source, &mux, &wg)
}
}