diff --git a/src/oebuild/local_conf.py b/src/oebuild/local_conf.py index 1f93ed6f1d65459766176287c62fc2a486992c80..6a0a230cf87ded62a362d68ac1a0226df612ea7c 100644 --- a/src/oebuild/local_conf.py +++ b/src/oebuild/local_conf.py @@ -182,6 +182,11 @@ class LocalConf: user_content_flag = "#===========the content is user added==================" if user_content_flag not in content and parse_compile.local_conf != "": + # check if exists remark sysmbol, if exists and replace it + for line in parse_compile.local_conf.split('\n'): + if line.startswith("#"): + r_line = line.lstrip("#").strip(" ") + content = content.replace(r_line, line) content += f"\n{user_content_flag}\n" content += parse_compile.local_conf