Setup changelog cache only when necessary

This commit is contained in:
kota kanbe
2017-08-08 20:16:19 +09:00
parent a233e08929
commit 29cf4bb517

View File

@@ -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 {