@@ -2788,10 +2788,28 @@ def logcat(self, args):
2788
2788
directory. All extra args are passed as arguments to logcat.'''
2789
2789
self .adb (['logcat' ] + args )
2790
2790
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
+
2795
2813
2796
2814
def main ():
2797
2815
ToolchainCL ()
0 commit comments