put back repo file creation in init

Signed-off-by: Akash Shinde <akashshinde159@gmail.com>
pull/6268/head
Akash Shinde 6 years ago
parent 036245490f
commit 5088292718

@ -145,10 +145,10 @@ func ensureReposFile(out io.Writer, skipRefresh bool) error {
repoFile := helmpath.RepositoryFile() repoFile := helmpath.RepositoryFile()
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.NewFile() f := repo.NewFile()
//if err := f.WriteFile(repoFile, 0644); err != nil { if err := f.WriteFile(repoFile, 0644); err != nil {
// return err return err
//} }
} else if fi.IsDir() { } else if fi.IsDir() {
return errors.Errorf("%s must be a file, not a directory", repoFile) return errors.Errorf("%s must be a file, not a directory", repoFile)
} }

Loading…
Cancel
Save