Skip to content

Commit 979558b

Browse files
eatradishMingcongBai
authored andcommitted
fix: fix ciel build --force-use-apt use apt to update-os
1 parent 89a715e commit 979558b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/actions/packaging.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ fn package_build_inner<P: AsRef<Path>>(
181181
let mut status = -1;
182182
let mut oma = true;
183183
for i in 1..=5 {
184-
status = if oma {
184+
status = if oma && !apt {
185185
run_in_container(instance, &["/bin/bash", "-ec", OMA_UPDATE_SCRIPT]).unwrap_or(-1)
186186
} else {
187187
run_in_container(instance, &["/bin/bash", "-ec", APT_UPDATE_SCRIPT]).unwrap_or(-1)

0 commit comments

Comments
 (0)