aboutsummaryrefslogtreecommitdiff
path: root/kolla/template
diff options
context:
space:
mode:
authorMarcin Juszkiewicz <marcin.juszkiewicz@linaro.org>2017-05-04 15:54:21 +0200
committerMarcin Juszkiewicz <marcin.juszkiewicz@linaro.org>2017-05-08 14:31:33 +0200
commitbfc72492e7a10221237261e276f8b8d1fefa70e3 (patch)
tree6e594709a230fbbc59b96abf8706d5382e79e3e4 /kolla/template
parent9751b32a7b37e12fab19a6a99c98c4c58f348a6d (diff)
downloadkolla-bfc72492e7a10221237261e276f8b8d1fefa70e3.tar.gz
kolla-bfc72492e7a10221237261e276f8b8d1fefa70e3.zip
always update APT lists when install packages
Normally we update APT lists when 'base' image is built. But when some time pass those lists get out-of-date and images can not be built. CentOS based images handle that without issues because YUM updates repository data whenever they are out-of-date. Change-Id: I5ba5b2067566639b399329b878027d4513567f71
Diffstat (limited to 'kolla/template')
-rw-r--r--kolla/template/methods.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/kolla/template/methods.py b/kolla/template/methods.py
index 7a6ac8d64..06a97afa8 100644
--- a/kolla/template/methods.py
+++ b/kolla/template/methods.py
@@ -44,6 +44,7 @@ def debian_package_install(packages):
# handle the apt-get install
if reg_packages:
+ cmds.append('apt-get update')
cmds.append('apt-get -y install --no-install-recommends {}'.format(
' '.join(reg_packages)
))