Unindent the file list

This commit is contained in:
Wildan M 2026-01-18 17:21:59 +07:00
parent c76fb12c88
commit 36d8ad208c
No known key found for this signature in database
GPG Key ID: 01AC53185C679C79

View File

@ -593,8 +593,8 @@ fn handle_cook(
let stage_dirs = get_stage_dirs(&recipe.recipe.optional_packages, &target_dir);
for stage_dir in stage_dirs {
if stage_dir.is_dir() {
let mut stage_files_buf = format!("{}\n", recipe.name.without_host());
tree::walk_file_tree(&stage_dir, " ", &mut stage_files_buf)
let mut stage_files_buf = String::new();
tree::walk_file_tree(&stage_dir, "", &mut stage_files_buf)
.context("failed to walk stage files tree")?;
fs::write(stage_dir.with_added_extension("files"), stage_files_buf)
.context("unable to write stage files")?;