diff mbox series

[1/2] query.py: Replace layer directory name with layer name for show-layers

Message ID 20230127005457.48733-1-pedro.miguel.baptista@gmail.com
State New
Headers show
Series [1/2] query.py: Replace layer directory name with layer name for show-layers | expand

Commit Message

pedro.miguel.baptista@gmail.com Jan. 27, 2023, 12:54 a.m. UTC
From: Pedro Baptista <pedro.miguel.baptista@gmail.com>

Replace the layer directory name with the name from BBFILE_COLLECTIONS
which is useful when assigning a LAYERDEPENDS value

Signed-off-by: Pedro Baptista <pedro.miguel.baptista@gmail.com>
---
 lib/bblayers/query.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/lib/bblayers/query.py b/lib/bblayers/query.py
index afd39518..4c071326 100644
--- a/lib/bblayers/query.py
+++ b/lib/bblayers/query.py
@@ -33,8 +33,8 @@  class QueryPlugin(LayerPlugin):
         logger.plain('=' * 74)
         for layer, _, regex, pri in self.tinfoil.cooker.bbfile_config_priorities:
             layerdir = self.bbfile_collections.get(layer, None)
-            layername = self.get_layer_name(layerdir)
-            logger.plain("%s  %s  %d" % (layername.ljust(20), layerdir.ljust(40), pri))
+            layername = layer
+            logger.plain("%s  %s  %d" % (layername.ljust(20), layerdir.ljust(0), pri))
 
     def version_str(self, pe, pv, pr = None):
         verstr = "%s" % pv