summaryrefslogtreecommitdiffstats
path: root/bitbake/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/bin')
-rwxr-xr-xbitbake/bin/bitbake-layers11
1 files changed, 7 insertions, 4 deletions
diff --git a/bitbake/bin/bitbake-layers b/bitbake/bin/bitbake-layers
index 1dacc258b4..6d18d9455b 100755
--- a/bitbake/bin/bitbake-layers
+++ b/bitbake/bin/bitbake-layers
@@ -86,9 +86,13 @@ class Commands(cmd.Cmd):
86 self.cooker_data = self.cooker.status 86 self.cooker_data = self.cooker.status
87 self.cooker_data.appends = self.cooker.appendlist 87 self.cooker_data.appends = self.cooker.appendlist
88 88
89 def check_prepare_cooker(self): 89 def check_prepare_cooker(self, config_only = False):
90 if not self.cooker_data: 90 if not self.cooker_data:
91 self.prepare_cooker() 91 if config_only:
92 self.cooker.parseConfiguration()
93 self.cooker_data = self.cooker.status
94 else:
95 self.prepare_cooker()
92 96
93 def default(self, line): 97 def default(self, line):
94 """Handle unrecognised commands""" 98 """Handle unrecognised commands"""
@@ -113,8 +117,7 @@ class Commands(cmd.Cmd):
113 117
114 def do_show_layers(self, args): 118 def do_show_layers(self, args):
115 """show current configured layers""" 119 """show current configured layers"""
116 self.check_prepare_cooker() 120 self.check_prepare_cooker(config_only = True)
117 logger.plain('')
118 logger.plain("%s %s %s" % ("layer".ljust(20), "path".ljust(40), "priority")) 121 logger.plain("%s %s %s" % ("layer".ljust(20), "path".ljust(40), "priority"))
119 logger.plain('=' * 74) 122 logger.plain('=' * 74)
120 for layerdir in self.bblayers: 123 for layerdir in self.bblayers: