xolox / python-deb-pkg-tools

Debian packaging tools
https://pypi.python.org/pypi/deb-pkg-tools
MIT License
42 stars 11 forks source link

Add a flag that allows things in /etc/ directory to NOT be treated as conffiles #19

Closed bill-freeman closed 4 years ago

bill-freeman commented 4 years ago

currently everything in /etc/ directory gets treated as conffiles. There are siuations where you dont want this to happen. You should update the function "update_conffiles(directory) in the package.py to accept a boolean that defines if /etc/ is treated as conffiles or not. You should also make it default to yes for legacy support.

xolox commented 4 years ago

Hi and thanks for the feedback. I've just released deb-pkg-tools 7.0 which adds support for build_package(update_conffiles=False) as documented here.