diff mbox series

[v2,1/3] bitbake-setup: fix top_dir creation in create_siteconf

Message ID 20251117-bitbake-setup-abort-v2-1-a73f44e83bc0@bootlin.com
State Accepted, archived
Commit 3f66ce0903949d02e35eadc9ad31691af4661b3d
Headers show
Series bitbake-setup init improvements | expand

Commit Message

Antonin Godard Nov. 17, 2025, 8:15 a.m. UTC
The intent of the create_siteconf() is to create the site.conf file
common to all setups. For this it needs the top directory to be created.
Create the top directory instead of its parent.

Previously, this directory was created by chance by init_bb_cache().

Signed-off-by: Antonin Godard <antonin.godard@bootlin.com>
---
 bin/bitbake-setup | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/bin/bitbake-setup b/bin/bitbake-setup
index 3a281defac..adf19ab09f 100755
--- a/bin/bitbake-setup
+++ b/bin/bitbake-setup
@@ -677,7 +677,7 @@  def create_siteconf(top_dir, non_interactive, settings):
             if y_or_n != 'y':
                 exit()
 
-        os.makedirs(os.path.dirname(top_dir), exist_ok=True)
+        os.makedirs(top_dir, exist_ok=True)
         with open(siteconfpath, 'w') as siteconffile:
             siteconffile.write(
                 textwrap.dedent(