@@ -2844,10 +2844,28 @@ def logcat(self, args):
2844
2844
directory. All extra args are passed as arguments to logcat.'''
2845
2845
self .adb (['logcat' ] + args )
2846
2846
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
+
2851
2869
2852
2870
def main ():
2853
2871
ToolchainCL ()
0 commit comments