diff options
Diffstat (limited to 'src/rootfs.rs')
| -rw-r--r-- | src/rootfs.rs | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/src/rootfs.rs b/src/rootfs.rs index bd139de..3f06045 100644 --- a/src/rootfs.rs +++ b/src/rootfs.rs @@ -204,7 +204,6 @@ fn install_from_archive( pkg_name: &str, archive_path: &std::path::Path, root_dir: &Path, - binary_files: &[String], pkg_type: &str, dict_url: Option<&str>, cfg: &config::Config, @@ -230,13 +229,7 @@ fn install_from_archive( .map_err(|e| format!("Extraction failed for '{}': {}", pkg_name, e))? }; - let file_list = if binary_files.is_empty() { - extracted - } else { - binary_files.to_vec() - }; - - let installed = install_files_with_root(&work_dir, root_dir, &file_list)?; + let installed = install_files_with_root(&work_dir, root_dir, &extracted)?; let _ = fs::remove_dir_all(&work_dir); let _ = fs::remove_file(archive_path); @@ -613,7 +606,6 @@ pub fn build_rootfs( pkg_name, archive_path, target_dir, - &binary.files, pkg_type, binary.dict.as_deref(), cfg, |