Skip to contentSkip to conversation

bitbake-setup: ensure args.setup_dir is an absolute path

PATCH New Alexander Kanavin 1 participant 1 message Mar 24

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 bitbake-setup: ensure args.setup_dir is an absolute path

From: Alexander Kanavin <[email protected]>

This fixes another corner case:
'bitbake-setup update --setup-dir ./relative/path'

Normally setup-dir is deduced from bitbake environment, but when it is passed in on the command line as a relative path, and there is something to update, new bblayer.conf is created with relative paths in it, causing breakage.

---
 bin/bitbake-setup | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
bin/bitbake-setup +1 -1
index dcad9c169..db44b7727 100755
@@ -746,7 +746,7 @@ def are_layers_changed(layers, layerdir, d):
     return changed
 
 def build_status(top_dir, settings, args, d, update=False):
-    setupdir = args.setup_dir
+    setupdir = os.path.abspath(args.setup_dir)
 
     confdir = os.path.join(setupdir, "config")
     layerdir = os.path.join(setupdir, "layers")
Signature · 1 line
2.47.3