deb: fmt
Some checks failed
CI / build (push) Failing after 30s

This commit is contained in:
2025-12-13 16:14:10 +01:00
parent c14ea99dc2
commit ad98d9c1ab

View File

@@ -2,7 +2,11 @@ use std::error::Error;
use std::path::Path; use std::path::Path;
use std::process::Command; use std::process::Command;
pub fn build_binary_package(arch: Option<&str>, series: Option<&str>, cwd: Option<&Path>) -> Result<(), Box<dyn Error>> { pub fn build_binary_package(
arch: Option<&str>,
series: Option<&str>,
cwd: Option<&Path>,
) -> Result<(), Box<dyn Error>> {
let cwd = cwd.unwrap_or_else(|| Path::new(".")); let cwd = cwd.unwrap_or_else(|| Path::new("."));
// Parse changelog to get package name and version // Parse changelog to get package name and version
@@ -26,10 +30,8 @@ pub fn build_binary_package(arch: Option<&str>, series: Option<&str>, cwd: Optio
if let Some(series) = series { if let Some(series) = series {
status.arg(format!("--dist={}", series)); status.arg(format!("--dist={}", series));
} }
let status = status let status = status.arg(dsc_path).status()?;
.arg(dsc_path)
.status()?;
if !status.success() { if !status.success() {
return Err(format!("sbuild failed with status: {}", status).into()); return Err(format!("sbuild failed with status: {}", status).into());