Skip to content

Commit c03c570

Browse files
committed
Added build_status command
1 parent 760d46d commit c03c570

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
@@ -2844,10 +2844,28 @@ def logcat(self, args):
28442844
directory. All extra args are passed as arguments to logcat.'''
28452845
self.adb(['logcat'] + args)
28462846

2847-
def status(self, args):
2848-
self.recipes(args)
2849-
self.bootstraps(args)
2850-
self.dists(args)
2847+
def build_status(self, args):
2848+
2849+
print('{Style.BRIGHT}Bootstraps whose core components are probably built:'
2850+
'{Style.RESET_ALL}'.format(Style=Style))
2851+
for filen in os.listdir(join(self.ctx.build_dir, 'bootstrap_builds')):
2852+
print(' {Fore.GREEN}{Style.BRIGHT}{filen}{Style.RESET_ALL}'.format(
2853+
filen=filen, Fore=Fore, Style=Style))
2854+
2855+
print('{Style.BRIGHT}Recipes that are probably already built:'
2856+
'{Style.RESET_ALL}'.format(Style=Style))
2857+
for filen in sorted(os.listdir(join(self.ctx.build_dir, 'other_builds'))):
2858+
name = filen.split('-')[0]
2859+
dependencies = filen.split('-')[1:]
2860+
recipe_str = (' {Style.BRIGHT}{Fore.GREEN}{name}'
2861+
'{Style.RESET_ALL}'.format(
2862+
Style=Style, name=name, Fore=Fore))
2863+
if dependencies:
2864+
recipe_str += (' ({Fore.BLUE}with ' + ', '.join(dependencies) +
2865+
'){Fore.RESET}').format(Fore=Fore)
2866+
recipe_str += '{Style.RESET_ALL}'.format(Style=Style)
2867+
print(recipe_str)
2868+
28512869

28522870
def main():
28532871
ToolchainCL()

0 commit comments

Comments
 (0)