Allow more matches, we select the best one anyway

This commit is contained in:
Ettore Di Giacinto
2020-01-06 11:33:35 +01:00
parent d2abaa9cc1
commit f5e7c2ad92

View File

@@ -190,7 +190,7 @@ func (l *LuetInstaller) Install(cp []pkg.Package, s *System) error {
for _, assertion := range solution {
if assertion.Value {
matches := syncedRepos.PackageMatches([]pkg.Package{assertion.Package})
if len(matches) != 1 {
if len(matches) == 0 {
return errors.New("Failed matching solutions against repository - where are definitions coming from?!")
}
A: