From c7b2a9d48795e1191b80a1f94acca5b4f084d612 Mon Sep 17 00:00:00 2001
From: Matt Farina <matt.farina@suse.com>
Date: Mon, 10 Jan 2022 11:20:50 -0500
Subject: [PATCH] Fixing issue where OCI handling early causes a bad message

Note, there is OCI handling later in the funtion that should
handle the situation instead.

Closes #10534

Signed-off-by: Matt Farina <matt.farina@suse.com>
---
 pkg/downloader/manager.go | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/pkg/downloader/manager.go b/pkg/downloader/manager.go
index d26dfd84..aa2c4a2f 100644
--- a/pkg/downloader/manager.go
+++ b/pkg/downloader/manager.go
@@ -578,8 +578,7 @@ func (m *Manager) resolveRepoNames(deps []*chart.Dependency) (map[string]string,
 	missing := []string{}
 	for _, dd := range deps {
 		// Don't map the repository, we don't need to download chart from charts directory
-		// When OCI is used there is no Helm repository
-		if dd.Repository == "" || registry.IsOCI(dd.Repository) {
+		if dd.Repository == "" {
 			continue
 		}
 		// if dep chart is from local path, verify the path is valid
-- 
GitLab