Tell if source removed

This commit is contained in:
Wildan M 2025-10-11 21:24:52 +07:00
parent 25dd3b79a1
commit 3a9f249e6e

View File

@ -268,6 +268,7 @@ pub fn fetch(recipe_dir: &Path, source: &Option<SourceRecipe>) -> Result<PathBuf
} {}
if source_dir.is_dir() {
if tar_updated || fetch_is_patches_newer(recipe_dir, patches, &source_dir)? {
eprintln!("DEBUG: source tar or patches is newer than the source directory");
remove_all(&source_dir)?
}
}