Fix layer purging

This commit is contained in:
Disassembler 2019-12-10 08:38:23 +01:00
parent e867ee7e64
commit 119636f94e
No known key found for this signature in database
GPG Key ID: 524BD33A0EE29499

View File

@ -251,7 +251,8 @@ class PkgMgr:
image = self.installed_packages['apps'][app]['containers'][container]['image'] image = self.installed_packages['apps'][app]['containers'][container]['image']
for layer in self.installed_packages['images'][image]['layers']: for layer in self.installed_packages['images'][image]['layers']:
if layer in layers: if layer in layers:
del layers[layer] # Layer is still used, remove from set of layers to be purged
layers.remove(layer)
for layer in layers: for layer in layers:
self.purge_layer(layer) self.purge_layer(layer)