Move selection logic to a db accessor #19

In this way the compiler consume such accessor, and make it possible to expand whenever used
This commit is contained in:
Ettore Di Giacinto
2019-12-01 19:11:19 +01:00
parent ddfb4fb8e8
commit 55fa7265e5
6 changed files with 52 additions and 24 deletions

View File

@@ -482,7 +482,7 @@ func (cs *LuetCompiler) compile(concurrency int, keepPermissions bool, p Compila
func (cs *LuetCompiler) FromPackage(p pkg.Package) (CompilationSpec, error) {
pack, err := cs.Database.FindPackage(p)
pack, err := cs.Database.FindPackageCandidate(p)
if err != nil {
return nil, err
}