deb: fix runtime usage for chroot
Some checks failed
CI / build (push) Failing after 11m13s

This commit is contained in:
2026-01-26 10:14:04 +01:00
parent c3a116203a
commit 2f5fb3b1e7
3 changed files with 15 additions and 12 deletions

View File

@@ -17,7 +17,7 @@ pub enum BuildMode {
}
/// Build package in 'cwd' to a .deb
pub fn build_binary_package(
pub async fn build_binary_package(
arch: Option<&str>,
series: Option<&str>,
cwd: Option<&Path>,
@@ -49,7 +49,7 @@ pub fn build_binary_package(
// Create an ephemeral unshare context for all Local builds
let mut guard = if mode == BuildMode::Local {
Some(ephemeral::EphemeralContextGuard::new(series)?)
Some(ephemeral::EphemeralContextGuard::new(series).await?)
} else {
None
};
@@ -227,6 +227,7 @@ mod tests {
log::info!("Starting binary package build...");
crate::deb::build_binary_package(arch, Some(series), Some(&cwd), cross, None)
.await
.expect("Cannot build binary package (deb)");
log::info!("Successfully built binary package");