deb: fix race condition for test
Some checks failed
CI / build (push) Failing after 18m26s
CI / snap (push) Has been skipped

Fix race condition around current context,
related to find_package_directory.
This commit is contained in:
2026-03-18 23:34:33 +01:00
parent 4a73e6e1d6
commit daaf33cd6b
3 changed files with 9 additions and 6 deletions

View File

@@ -169,7 +169,8 @@ pub async fn build(
}
// Find the actual package directory
let package_dir = crate::deb::find_package_directory(Path::new(build_root), package, version)?;
let package_dir =
crate::deb::find_package_directory(Path::new(build_root), package, version, &ctx)?;
let package_dir_str = package_dir
.to_str()
.ok_or("Invalid package directory path")?;