fix: update scp submodule so duplicate sections are preserved while editing configs (#735)

* Squashed 'kiauh/core/submodules/simple_config_parser/' changes from f5eee99..5bc9e0a

5bc9e0a docs: update README
394dd7b refactor!: improve parsing and writing for config (#5)

git-subtree-dir: kiauh/core/submodules/simple_config_parser
git-subtree-split: 5bc9e0a50947f1be2f4877a10ab3a632774f82ea

* fix(logging): change warning to error message for config creation failure

* fix(config): improve readability by using descriptive variable names for options
This commit is contained in:
dw-0
2025-10-26 16:28:33 +01:00
committed by GitHub
parent b6521fd721
commit ae0a6b697e
21 changed files with 985 additions and 634 deletions

View File

@@ -48,7 +48,9 @@ def add_config_section(
if options is not None:
for option in reversed(options):
scp.set_option(section, option[0], option[1])
opt_name = option[0]
opt_value = option[1]
scp.set_option(section, opt_name, opt_value)
scp.write_file(cfg_file)