Message ID | 20250912204559.10360-2-reatmon@ti.com |
---|---|
State | New |
Headers | show |
Series | [1/3] bitbake-setup: Tweak user inputs | expand |
diff --git a/bin/bitbake-setup b/bin/bitbake-setup index 36103f1e8..342251bd5 100755 --- a/bin/bitbake-setup +++ b/bin/bitbake-setup @@ -50,7 +50,7 @@ def save_bb_cache(): bb.fetch2.fetcher_parse_done() def get_config_name(config): - return os.path.basename(config).split('.')[0] + return os.path.splitext(os.path.basename(config))[0] def write_config(config, config_dir): with open(os.path.join(config_dir, "config-upstream.json"),'w') as s:
When extracting the config name from from the filename, just splitting on . does not allow for . in the config name. For example: coresdk-11.01.08-config.json -> coresdk-11 when it should be: coresdk-11.01.08-config.json -> coresdk-11.01.08-config os.path.splitext() already does this logic correctly, so use that instead. Signed-off-by: Ryan Eatmon <reatmon@ti.com> --- bin/bitbake-setup | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)