Fix layer ordering

This commit is contained in:
Disassembler 2019-09-24 10:53:01 +02:00
parent 7f0d9572e3
commit 89d3dd7d0c
Signed by: Disassembler
GPG Key ID: 524BD33A0EE29499
2 changed files with 2 additions and 2 deletions

@ -1 +1 @@
Subproject commit d14fba7ec1759bb9a9a45369d155a9937dbdbecd Subproject commit 171aa760438326240ece7f034ad5b39a89a4fa74

View File

@ -92,7 +92,7 @@ class Builder:
layer_path = self.get_layer_path(name) layer_path = self.get_layer_path(name)
if not os.path.exists(layer_path): if not os.path.exists(layer_path):
raise ImageNotFoundError(layer_path) raise ImageNotFoundError(layer_path)
self.image.conf['layers'].insert(0, name) self.image.conf['layers'].insert(-1, name)
def fix_layer(self, cmd): def fix_layer(self, cmd):
layers = [self.get_layer_path(layer) for layer in self.image.conf['layers']] layers = [self.get_layer_path(layer) for layer in self.image.conf['layers']]