deb: retrieve .deb artifacts
All checks were successful
CI / build (push) Successful in 2m2s

sbuild options: unshare, build directory

context: retrieve files
This commit is contained in:
2025-12-16 20:12:08 +01:00
parent 06ab5eaf98
commit b5ac76a293
4 changed files with 102 additions and 2 deletions

View File

@@ -21,7 +21,21 @@ impl ContextDriver for LocalDriver {
}
fn prepare_work_dir(&self) -> io::Result<String> {
Ok(".".to_string())
// TODO: Fix that, we should not always use '..' as work directory locally
Ok("..".to_string())
}
fn retrieve_path(&self, _src: &Path, _dest: &Path) -> io::Result<()> {
Ok(())
}
fn list_files(&self, path: &Path) -> io::Result<Vec<PathBuf>> {
let mut entries = Vec::new();
for entry in std::fs::read_dir(path)? {
let entry = entry?;
entries.push(entry.path());
}
Ok(entries)
}
}