mirror of
https://github.com/Jguer/yay.git
synced 2025-12-27 11:06:51 -05:00
6
vcs.go
6
vcs.go
@@ -2,6 +2,7 @@ package main
|
||||
|
||||
import (
|
||||
"context"
|
||||
"path/filepath"
|
||||
"strings"
|
||||
"sync"
|
||||
|
||||
@@ -33,11 +34,14 @@ func createDevelDB(ctx context.Context, config *settings.Configuration, dbExecut
|
||||
toSkip := pkgbuildsToSkip(bases, stringset.FromSlice(remoteNames))
|
||||
|
||||
targets := make([]string, 0, len(bases))
|
||||
pkgBuildDirsByBase := make(map[string]string, len(bases))
|
||||
|
||||
for _, base := range bases {
|
||||
if !toSkip.Get(base.Pkgbase()) {
|
||||
targets = append(targets, base.Pkgbase())
|
||||
}
|
||||
|
||||
pkgBuildDirsByBase[base.Pkgbase()] = filepath.Join(config.BuildDir, base.Pkgbase())
|
||||
}
|
||||
|
||||
toSkipSlice := toSkip.ToSlice()
|
||||
@@ -52,7 +56,7 @@ func createDevelDB(ctx context.Context, config *settings.Configuration, dbExecut
|
||||
return err
|
||||
}
|
||||
|
||||
srcinfos, err := parseSrcinfoFiles(bases, false)
|
||||
srcinfos, err := parseSrcinfoFiles(pkgBuildDirsByBase, false)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user