Skip to content

Commit d2ccc5b

Browse files
committed
added command clean_bootstraps
1 parent de1014d commit d2ccc5b

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

pythonforandroid/toolchain.py

100755100644
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,7 @@ def __init__(self):
180180
clean_all Delete all build components
181181
clean_builds Delete all build caches
182182
clean_dists Delete all compiled distributions
183+
clean_bootstraps Delete all compiled bootstraps
183184
clean_download_cache Delete any downloaded recipe packages
184185
clean_recipe_build Delete the build files of a recipe
185186
distributions 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.

0 commit comments

Comments
 (0)