Improve landscape-config handling of client.conf changes
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Landscape Client |
Invalid
|
Medium
|
Unassigned |
Bug Description
The way dpkg-reconfigure is handled has a some minor issues:
- part of client.conf is written by landscape-
- Creating backups of client.conf leads to error messages about non-empty directories when the package is uninstalled.
In general the following should hold:
- landscape-config should be responsible for modifying client.conf
- landscape-config gathers settings from the existing config file as well as the command line, with command line settings taking precedence.
- Comments in client.conf should be preserved.
- No unnecessary rewrites of client.conf. If nothing is different, do not rewrite the file.
- No backups of client.conf
The issue of preserving comments is not possible with ConfigParse as it currently exists.
The issue of no unnecessary rewrites is documented in bug #940480.
Related branches
- Free Ekanayaka (community): Approve
- Chad Smith: Approve
-
Diff: 122 lines (+50/-61)1 file modifieddebian/landscape-client.postinst (+50/-61)
description: | updated |
Changed in landscape-client: | |
status: | In Progress → Fix Committed |
Changed in landscape-client: | |
status: | Fix Committed → Invalid |
assignee: | Jerry Seutter (jseutter) → nobody |
milestone: | 12.02.2 → none |