File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -180,6 +180,7 @@ def __init__(self):
180180clean_all Delete all build components
181181clean_builds Delete all build caches
182182clean_dists Delete all compiled distributions
183+ clean_bootstraps Delete all compiled bootstraps
183184clean_download_cache Delete any downloaded recipe packages
184185clean_recipe_build Delete the build files of a recipe
185186distributions List all distributions
@@ -423,6 +424,14 @@ def clean_dists(self, args):
423424 if exists (ctx .dist_dir ):
424425 shutil .rmtree (ctx .dist_dir )
425426
427+ def clean_bootstraps (self , args ):
428+ '''Delete all the bootstrap builds.'''
429+ for bs in Bootstrap .list_bootstraps ():
430+ bs = Bootstrap .get_bootstrap (bs , self .ctx )
431+ if bs .build_dir and exists (bs .build_dir ):
432+ info ('Cleaning build for {} bootstrap.' .format (bs .name ))
433+ shutil .rmtree (bs .build_dir )
434+
426435 def clean_builds (self , args ):
427436 '''Delete all build caches for each recipe, python-install, java code
428437 and compiled libs collection.
You can’t perform that action at this time.
0 commit comments