build: fix signature handling
This commit is contained in:
@@ -28,11 +28,11 @@ pub fn build_source_package(cwd: Option<&Path>) -> Result<(), Box<dyn Error>> {
|
||||
|
||||
// If a signing key is found, use it for signing
|
||||
if let Some(key_id) = &signing_key {
|
||||
args.push("-sa"); // Sign the source package
|
||||
args.push("-k");
|
||||
args.push(key_id);
|
||||
log::info!("Using GPG key {} for signing", key_id);
|
||||
} else {
|
||||
args.push("--no-sign");
|
||||
log::info!(
|
||||
"No GPG key found for {} ({}), building without signing",
|
||||
maintainer_name,
|
||||
|
||||
Reference in New Issue
Block a user