diff options
| author | Paul Bourke <paul.bourke@oracle.com> | 2016-08-10 11:40:30 +0000 |
|---|---|---|
| committer | Paul Bourke <paul.bourke@oracle.com> | 2016-08-10 11:46:48 +0000 |
| commit | 495a905b8032b4d3c68246be204384da2b0f3c3d (patch) | |
| tree | 5c93a250a1dd12b06b0fea90ff2d817575545273 /docker/macros.j2 | |
| parent | b649bb7d4a486ab8210f75bbeaa909dd069de90e (diff) | |
| download | kolla-495a905b8032b4d3c68246be204384da2b0f3c3d.tar.gz kolla-495a905b8032b4d3c68246be204384da2b0f3c3d.zip | |
Revert "Remove files from /var/lib/apt/lists when cleaning up on Ubuntu/Debian"
This reverts commit 4e8bf3f90da2b1b36575528a30926a575bfc4095.
It seems removing /var/lib/apt/lists is having some unintended side
effects causing apt to not find packages [0]
[0] http://logs.openstack.org/87/350587/10/check/gate-kolla-dsvm-build-ubuntu-source/c0a22a3/console.html#_2016-08-09_13_41_14_477480
Change-Id: I89042e5883f19fddbae11d75b788f87ad5d871a1
Diffstat (limited to 'docker/macros.j2')
| -rw-r--r-- | docker/macros.j2 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docker/macros.j2 b/docker/macros.j2 index 0774a187d..c10973ef6 100644 --- a/docker/macros.j2 +++ b/docker/macros.j2 @@ -2,6 +2,6 @@ {% if base_distro in ['centos', 'fedora', 'oraclelinux', 'rhel'] -%} yum -y install {{ packages | join(' ') }} && yum clean all {%- elif base_distro in ['ubuntu', 'debian'] -%} - apt-get -y install --no-install-recommends {{ packages | join(' ') }} && apt-get clean && rm -rf /var/lib/apt/lists/* + apt-get -y install --no-install-recommends {{ packages | join(' ') }} && apt-get clean {%- endif %} {%- endmacro %} |
