tasks now handle --reextract themselves

This commit is contained in:
isanae
2020-05-25 01:43:16 -04:00
parent f8b4162742
commit 863d8be99e
16 changed files with 122 additions and 13 deletions
+7
View File
@@ -70,6 +70,13 @@ void python::do_clean(clean c)
{
if (is_set(c, clean::redownload))
run_tool(downloader(prebuilt_url(), downloader::clean));
if (is_set(c, clean::reextract))
{
cx().trace(context::reextract, "deleting {}", source_path());
op::delete_directory(cx(), source_path(), op::optional);
return;
}
}
else
{