Remove apt package list cache after building
This commit is contained in:
@@ -265,6 +265,7 @@ class ImageBuilder(object):
|
|||||||
chroot_path,
|
chroot_path,
|
||||||
'apt-get',
|
'apt-get',
|
||||||
'clean')
|
'clean')
|
||||||
|
shutil.rmtree(os.path.join(chroot_path, 'var', 'lib', 'apt', 'lists'))
|
||||||
|
|
||||||
def _RemoveDiversions(self, chroot_path):
|
def _RemoveDiversions(self, chroot_path):
|
||||||
for source in self._DIVERSIONS:
|
for source in self._DIVERSIONS:
|
||||||
|
|||||||
Reference in New Issue
Block a user