|
|
@ -23,6 +23,7 @@ import (
|
|
|
|
"fmt"
|
|
|
|
"fmt"
|
|
|
|
"io"
|
|
|
|
"io"
|
|
|
|
"os"
|
|
|
|
"os"
|
|
|
|
|
|
|
|
"path/filepath"
|
|
|
|
"time"
|
|
|
|
"time"
|
|
|
|
|
|
|
|
|
|
|
|
"github.com/spf13/cobra"
|
|
|
|
"github.com/spf13/cobra"
|
|
|
@ -374,7 +375,7 @@ func ensureDefaultRepos(home helmpath.Home, out io.Writer, skipRefresh bool) err
|
|
|
|
if fi, err := os.Stat(repoFile); err != nil {
|
|
|
|
if fi, err := os.Stat(repoFile); err != nil {
|
|
|
|
fmt.Fprintf(out, "Creating %s \n", repoFile)
|
|
|
|
fmt.Fprintf(out, "Creating %s \n", repoFile)
|
|
|
|
f := repo.NewRepoFile()
|
|
|
|
f := repo.NewRepoFile()
|
|
|
|
sr, err := initStableRepo(home.CacheRelativeIndex(stableRepository), out, skipRefresh, home)
|
|
|
|
sr, err := initStableRepo(filepath.Rel(home.Cache(), home.CacheIndex(stableRepository)), out, skipRefresh, home)
|
|
|
|
if err != nil {
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
}
|
|
|
|