Remove apt package list cache after building

This commit is contained in:
Ian Gulliver
2017-04-20 20:00:39 +00:00
parent d4f17b2829
commit 1abf3d682f

View File

@@ -265,6 +265,7 @@ class ImageBuilder(object):
chroot_path,
'apt-get',
'clean')
shutil.rmtree(os.path.join(chroot_path, 'var', 'lib', 'apt', 'lists'))
def _RemoveDiversions(self, chroot_path):
for source in self._DIVERSIONS: