mirror of
https://gitlab.redox-os.org/redox-os/redox.git
synced 2026-06-24 13:54:19 +08:00
Tell if source removed
This commit is contained in:
parent
25dd3b79a1
commit
3a9f249e6e
@ -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)?
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user