Implemented a CFG_PROTECT profile variable
Files matching the CFG_PROTECT
pattern won't be overwritten on installation if they were modified by the user
Instead, a new file (with the suffix .new) will be created, and will be registered with the configuration update system
Fixes #310 (closed).
TODO: Tests, and the creation of a cfg-update subcommand so that users can view and run pending configuration updates manually.
This should also be used for updates to portmod's own config files if Done--no-confirm
is used, instead of applying them directly.
Edited by Benjamin Winger