Commit 59bb5aa1 authored by Michelle Noorali's avatar Michelle Noorali Committed by GitHub

Merge pull request #2028 from qwangrepos/issue-2020

local path repo verbose - issue #2020
parents ba66af8c 0bef0007
......@@ -98,5 +98,8 @@ func (d *dependencyUpdateCmd) run() error {
if d.verify {
man.Verify = downloader.VerifyIfPossible
}
if flagDebug {
man.Debug = true
}
return man.Update()
}
......@@ -51,6 +51,8 @@ type Manager struct {
HelmHome helmpath.Home
// Verification indicates whether the chart should be verified.
Verify VerificationStrategy
// Debug is the global "--debug" flag
Debug bool
// Keyring is the key ring file.
Keyring string
// SkipUpdate indicates that the repository should not be updated first.
......@@ -213,7 +215,9 @@ func (m *Manager) downloadAll(deps []*chartutil.Dependency) error {
}
if strings.HasPrefix(dep.Repository, "file://") {
fmt.Fprintf(m.Out, "Archiving %s from repo %s\n", dep.Name, dep.Repository)
if m.Debug {
fmt.Fprintf(m.Out, "Archiving %s from repo %s\n", dep.Name, dep.Repository)
}
ver, err := tarFromLocalDir(m.ChartPath, dep.Name, dep.Repository, dep.Version)
if err != nil {
return err
......@@ -335,7 +339,9 @@ func (m *Manager) getRepoNames(deps []*chartutil.Dependency) (map[string]string,
return nil, err
}
fmt.Fprintf(m.Out, "Repository from local path: %s\n", dd.Repository)
if m.Debug {
fmt.Fprintf(m.Out, "Repository from local path: %s\n", dd.Repository)
}
reposMap[dd.Name] = dd.Repository
continue
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment