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

@@ -262,4 +262,14 @@ impl ContextDriver for SchrootDriver {
}
Ok(())
}
fn exists(&self, path: &Path) -> io::Result<bool> {
let status = self.run(
"test",
&["-e".to_string(), path.to_string_lossy().to_string()],
&[],
None,
)?;
Ok(status.success())
}
}