Skip to content

Commit 7806663

Browse files
committed
fix: fix ciel build non local repo use --force-use-apt
1 parent 139661c commit 7806663

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/actions/packaging.rs

+8-1
Original file line numberDiff line numberDiff line change
@@ -329,9 +329,16 @@ pub fn package_build<S: AsRef<str>, K: Clone + ExactSizeIterator<Item = S>>(
329329
rollback_container(instance)?;
330330

331331
if !conf.local_repo {
332-
let mut cmd = vec!["/bin/acbs-build".to_string(), "--".to_string()];
332+
let mut cmd = vec!["/bin/acbs-build".to_string()];
333+
334+
if settings.force_use_apt {
335+
cmd.push("--force-use-apt".to_string());
336+
}
337+
338+
cmd.push("--".to_string());
333339
cmd.extend(packages);
334340
let status = run_in_container(instance, &cmd)?;
341+
335342
return Ok(status);
336343
}
337344

0 commit comments

Comments
 (0)