mirror of
https://git.yoctoproject.org/poky
synced 2026-05-30 12:29:55 +00:00
bitbake: msg: Avoid issues where paths have relative components
The autobuilder can end up using build/../ syntax which is an issue if the build directory is cleaned. Avoid this by using normpath() on the file path passed in. (Bitbake rev: 41988fec47eb196ab7195a75330a6d98de19101b) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -280,7 +280,7 @@ def setLoggingConfig(defaultconfig, userconfigfile=None):
|
|||||||
logconfig = copy.deepcopy(defaultconfig)
|
logconfig = copy.deepcopy(defaultconfig)
|
||||||
|
|
||||||
if userconfigfile:
|
if userconfigfile:
|
||||||
with open(userconfigfile, 'r') as f:
|
with open(os.path.normpath(userconfigfile), 'r') as f:
|
||||||
if userconfigfile.endswith('.yml') or userconfigfile.endswith('.yaml'):
|
if userconfigfile.endswith('.yml') or userconfigfile.endswith('.yaml'):
|
||||||
import yaml
|
import yaml
|
||||||
userconfig = yaml.load(f)
|
userconfig = yaml.load(f)
|
||||||
|
|||||||
Reference in New Issue
Block a user