Setup changelog cache only when necessary
This commit is contained in:
@@ -421,9 +421,15 @@ func setupChangelogCache() error {
|
||||
needToSetupCache := false
|
||||
for _, s := range servers {
|
||||
switch s.getDistro().Family {
|
||||
case config.Ubuntu, config.Debian, config.Raspbian:
|
||||
case config.Raspbian:
|
||||
needToSetupCache = true
|
||||
break
|
||||
case config.Ubuntu, config.Debian:
|
||||
//TODO changelopg cache for RedHat, Oracle, Amazon, CentOS is not implemented yet.
|
||||
if config.Conf.Deep {
|
||||
needToSetupCache = true
|
||||
}
|
||||
break
|
||||
}
|
||||
}
|
||||
if needToSetupCache {
|
||||
|
||||
Reference in New Issue
Block a user