Skip to content

Commit 9aaa203

Browse files
committed
Added build_status command
1 parent ce598b0 commit 9aaa203

File tree

1 file changed

+22
-4
lines changed

1 file changed

+22
-4
lines changed

pythonforandroid/toolchain.py

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2788,10 +2788,28 @@ def logcat(self, args):
27882788
directory. All extra args are passed as arguments to logcat.'''
27892789
self.adb(['logcat'] + args)
27902790

2791-
def status(self, args):
2792-
self.recipes(args)
2793-
self.bootstraps(args)
2794-
self.dists(args)
2791+
def build_status(self, args):
2792+
2793+
print('{Style.BRIGHT}Bootstraps whose core components are probably built:'
2794+
'{Style.RESET_ALL}'.format(Style=Style))
2795+
for filen in os.listdir(join(self.ctx.build_dir, 'bootstrap_builds')):
2796+
print(' {Fore.GREEN}{Style.BRIGHT}{filen}{Style.RESET_ALL}'.format(
2797+
filen=filen, Fore=Fore, Style=Style))
2798+
2799+
print('{Style.BRIGHT}Recipes that are probably already built:'
2800+
'{Style.RESET_ALL}'.format(Style=Style))
2801+
for filen in sorted(os.listdir(join(self.ctx.build_dir, 'other_builds'))):
2802+
name = filen.split('-')[0]
2803+
dependencies = filen.split('-')[1:]
2804+
recipe_str = (' {Style.BRIGHT}{Fore.GREEN}{name}'
2805+
'{Style.RESET_ALL}'.format(
2806+
Style=Style, name=name, Fore=Fore))
2807+
if dependencies:
2808+
recipe_str += (' ({Fore.BLUE}with ' + ', '.join(dependencies) +
2809+
'){Fore.RESET}').format(Fore=Fore)
2810+
recipe_str += '{Style.RESET_ALL}'.format(Style=Style)
2811+
print(recipe_str)
2812+
27952813

27962814
def main():
27972815
ToolchainCL()

0 commit comments

Comments
 (0)