fix: --import-aur now saves to both CWD and ~/.cub/

This commit is contained in:
2026-05-08 07:43:13 +01:00
parent eaf283af36
commit c46753eaca
@@ -879,6 +879,12 @@ fn import_aur_target(target: &str) -> Result<(), Box<dyn std::error::Error>> {
println!("Imported AUR package into {}", output_dir.display());
println!("{report}");
match cub::recipe::save_recipe_to_store(&conversion.rbpkg, &CubStore::new()?) {
Ok(path) => println!("Also saved to ~/.cub/: {}", path.display()),
Err(e) => eprintln!("Note: could not save to ~/.cub/: {e}"),
}
Ok(())
}