Revert "Do not allow multiple versions in the results"

This reverts commit 15534ce253.
This commit is contained in:
Ettore Di Giacinto
2019-12-13 23:05:09 +01:00
parent 15534ce253
commit 926f636dff
5 changed files with 14 additions and 119 deletions

View File

@@ -401,9 +401,6 @@ func (pack *DefaultPackage) BuildFormula(definitiondb PackageDatabase, db Packag
var formulas []bf.Formula
for _, requiredDef := range p.GetRequires() {
// TODO: Change, instead of selecting best, we should enforce a rule
// between all the versions of that package (there must be only one),
// and selection of one of those versions to match a requirement
required, err := definitiondb.FindPackageCandidate(requiredDef)
if err != nil {
return nil, errors.Wrap(err, "Couldn't find required package in db definition")