invert layer order
This commit is contained in:
parent
879a5f1433
commit
0b265c5bc3
1 changed files with 3 additions and 1 deletions
|
@ -48,7 +48,9 @@ export async function tar2squashfs(streams, output, extraFiles) {
|
|||
p.pipe(child.stdin);
|
||||
p.on("error", console.error);
|
||||
|
||||
for (const streamP of streams) {
|
||||
// We reverse the arrays because mksquashfs ignores files if they already exist,
|
||||
// so we leave the last layers first so they are the ones used instead of the last ones
|
||||
for (const streamP of [...streams].reverse()) {
|
||||
const stream = await streamP;
|
||||
const ex = extract();
|
||||
|
||||
|
|
Loading…
Reference in a new issue