https://bugs.kde.org/show_bug.cgi?id=428240
Bug ID: 428240
Summary: kconf_update: AllGroups command changes group context,
as if Group= was processed.
Product: frameworks-kconfig
Version: 5.74.0
Platform: Other
OS: Linux
Status: REPORTED
Severity: normal
Priority: NOR
Component: general
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Target Milestone: ---
SUMMARY
The AllGroups command copies/moves all groups (excluding the top-level group),
but then sets the group context to something else than it was before. This is
problematic when Options=copy was used, or top-level entries shall be processed
later.
STEPS TO REPRODUCE
1. Create a configuration file with groups and top-level entries, like this:
> TopLevelKey=true
>
> [FirstGroup]
> FirstKeyInGroup=true
>
> [SecondGroup]
> SecondKeyInGroup=true
> TopLevelKey=false
2. Create an update file like this:
> Version=5
> Id=some-update
> File=demooldrc,demonewrc
> Options=Copy
> AllGroups
> RemoveKey=TopLevelKey
3. run kconf_update on this update file.
OBSERVED RESULT
FirstGroup and SecondGroup are copied to demonewrc.
[SecondGroup]TopLevelKey is removed from demooldrc.
EXPECTED RESULT
FirstGroup and SecondGroup are copied to demonewrc.
TopLevelKey is removed from demooldrc.
--
You are receiving this mail because:
You are watching all bug changes.