Skip to content

Implemented a CFG_PROTECT profile variable

Benjamin Winger requested to merge bmwinger/portmod:cfg_protect2 into master

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 --no-confirm is used, instead of applying them directly. Done

Edited by Benjamin Winger

Merge request reports