From 602f386b03c59fb26982e9b554c54b82450f2ebf Mon Sep 17 00:00:00 2001 From: morganamilo Date: Fri, 3 Aug 2018 00:36:47 +0100 Subject: [PATCH] Loop over srcinfos instead of pkglist in gendb --- vcs.go | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/vcs.go b/vcs.go index f6abae19..ac897f19 100644 --- a/vcs.go +++ b/vcs.go @@ -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) } }