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