deb: fix bug in find_dsc_file
Some checks failed
CI / build (push) Failing after 5m35s

This commit is contained in:
2026-01-09 23:15:13 +01:00
parent dd62baa455
commit a444a5d8d2
6 changed files with 37 additions and 1 deletions

View File

@@ -95,7 +95,9 @@ fn find_dsc_file(
let dsc_name = format!("{}_{}.dsc", package, version_without_epoch);
let dsc_path = PathBuf::from(build_root).join(&dsc_name);
if !dsc_path.exists() {
// Check if the .dsc file exists in current context
let ctx = context::current();
if !ctx.exists(&dsc_path)? {
return Err(format!("Could not find .dsc file at {}", dsc_path.display()).into());
}
Ok(dsc_path)