don't install all items from hub when upgrade --force (#948)
This commit is contained in:
parent
21dd4851f1
commit
078c994159
|
@ -208,18 +208,17 @@ func UpgradeConfig(itemType string, name string, force bool) {
|
||||||
if name != "" && name != v.Name {
|
if name != "" && name != v.Name {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
if !v.Installed {
|
if !v.Installed {
|
||||||
log.Tracef("skip %s, not installed", v.Name)
|
log.Tracef("skip %s, not installed", v.Name)
|
||||||
if !force {
|
continue
|
||||||
continue
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if !v.Downloaded {
|
if !v.Downloaded {
|
||||||
log.Warningf("%s : not downloaded, please install.", v.Name)
|
log.Warningf("%s : not downloaded, please install.", v.Name)
|
||||||
if !force {
|
continue
|
||||||
continue
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
found = true
|
found = true
|
||||||
if v.UpToDate {
|
if v.UpToDate {
|
||||||
log.Infof("%s : up-to-date", v.Name)
|
log.Infof("%s : up-to-date", v.Name)
|
||||||
|
|
Loading…
Reference in a new issue