mirror of
https://github.com/Jguer/yay.git
synced 2024-11-06 17:17:22 +01:00
Loop over srcinfos instead of pkglist in gendb
This commit is contained in:
parent
2de67d1b24
commit
602f386b03
11
vcs.go
11
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)
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user