Don't merge install and compilation DB. Use a temporary DB for generation

This commit is contained in:
Ettore Di Giacinto 2021-04-09 11:25:12 +02:00
parent b8961be793
commit 3250d63072

View File

@ -224,7 +224,7 @@ func GenerateRepository(name, descr, t string, urls []string,
b compiler.CompilerBackend, imagePrefix string, pushImages, force bool) (Repository, error) {
tr := tree.NewInstallerRecipe(db)
btr := tree.NewCompilerRecipe(db)
btr := tree.NewCompilerRecipe(pkg.NewInMemoryDatabase(false))
for _, treeDir := range treesDir {
if err := tr.Load(treeDir); err != nil {