func saveChart(name string, buf *bytes.Buffer, untar bool, untardir string) error {
	if untar {
		return chartutil.Expand(untardir, buf)
	}

	p := strings.Split(name, "/")
	return saveChartFile(p[len(p)-1], buf)
}
// saveChart saves a chart locally.
saveChart saves a chart locally.
// saveChart saves a chart locally .
func saveChart(name string, buf *bytes.Buffer, untar bool, untardir string) error {
	if untar {
		return chartutil.Expand(untardir, buf)
	}
	p := strings.Split(name, "/")
	return saveChartFile(p[len(p)-1], buf)
}
func saveChart ( name string , buf * bytes . Buffer , untar bool , untardir string ) error { if untar { return chartutil . Expand ( untardir , buf ) } p := strings . Split ( name , " " ) return saveChartFile ( p [ len ( p ) - 1 ] , buf ) }
saveChart saves a chart locally.
saveChart saves a chart locally .