From 84fc5b776f6aadc5bcaecfdbf5e521dee4d45d72 Mon Sep 17 00:00:00 2001
From: Sushil Kumar <Sushil.Kumar@suse.com>
Date: Mon, 10 Apr 2017 16:47:38 -0700
Subject: [PATCH] Fixes hard-coded linux based file-separator

Fixes https://github.com/kubernetes/helm/issues/2254
---
 pkg/helm/helmpath/helmhome.go | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/pkg/helm/helmpath/helmhome.go b/pkg/helm/helmpath/helmhome.go
index 3063d5876..d3023dcba 100644
--- a/pkg/helm/helmpath/helmhome.go
+++ b/pkg/helm/helmpath/helmhome.go
@@ -56,8 +56,8 @@ func (h Home) Cache() string {
 
 // CacheIndex returns the path to an index for the given named repository.
 func (h Home) CacheIndex(name string) string {
-	target := fmt.Sprintf("repository/cache/%s-index.yaml", name)
-	return h.Path(target)
+	target := fmt.Sprintf("%s-index.yaml", name)
+	return h.Path("repository", "cache", target)
 }
 
 // Starters returns the path to the Helm starter packs.
-- 
GitLab