fmt, clippy

This commit is contained in:
2026-08-23 01:46:04 +02:00
parent c2e1288bc5
commit 4a8ff9ac0d
11 changed files with 108 additions and 56 deletions
+17 -4
View File
@@ -17,7 +17,7 @@ use std::path::{Path, PathBuf};
use std::process::Command;
use crate::debian::{
parse_paragraphs, ChecksumEntry, ControlInfo, FileChecksums, FilesEntry, FilesList,
ChecksumEntry, ControlInfo, FileChecksums, FilesEntry, FilesList, parse_paragraphs,
};
/// Options for a native source-package build.
@@ -151,7 +151,10 @@ pub fn run_source_build(
);
}
Err(e) => {
log::warn!("failed to check for GPG key: {}, building without signing", e);
log::warn!(
"failed to check for GPG key: {}, building without signing",
e
);
}
}
}
@@ -167,7 +170,12 @@ pub fn run_source_build(
// ------------------------------------------------------------------
// 5. dpkg-source lifecycle: before-build + source build
// ------------------------------------------------------------------
run_command(cwd, "dpkg-source", &["-I", "-i", "--before-build", "."], &pipeline_env)?;
run_command(
cwd,
"dpkg-source",
&["-I", "-i", "--before-build", "."],
&pipeline_env,
)?;
run_command(cwd, "dpkg-source", &["-I", "-i", "-b", "."], &pipeline_env)?;
if !dsc_path.exists() {
@@ -333,7 +341,12 @@ pub fn run_source_build(
// ------------------------------------------------------------------
// 8. dpkg-source after-build (unapplies quilt patches it applied)
// ------------------------------------------------------------------
run_command(cwd, "dpkg-source", &["-I", "-i", "--after-build", "."], &pipeline_env)?;
run_command(
cwd,
"dpkg-source",
&["-I", "-i", "--after-build", "."],
&pipeline_env,
)?;
// ------------------------------------------------------------------
// 9. Signing cascade: dsc -> buildinfo -> changes