[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#527641: Package installation overwrites /etc/default/console-setup without warning



found 527641 1.35
found 527641 1.36
thanks

On Fri, 08 May 2009, Dave Witbrodt wrote:
> I have set the severity of this bug report to "serious" because,
> technically, it is a policy violation to overwrite user changes to file
> in /etc;

This is the real problem this bug is about... so closing it with this
explanation:
>    * Support unset font in Debconf configurator.  Thanks Dave Witbrodt,
>      closes: #527641.

is not correct.

To fix it, you have to:
1/ document in the file that it's auto-updated based on the debconf infos
   and that dpkg-reconfigure console-setup is recommended to update it
2/ use ucf or something similar to detect if the file has been edited by
   the user since last generation and avoid overwriting the file in that case
   (ucf like dpkg let the user choose what to do in that case)

Cheers,
-- 
Raphaël Hertzog

Contribuez à Debian et gagnez un cahier de l'admin Debian Lenny :
http://www.ouaza.com/wp/2009/03/02/contribuer-a-debian-gagner-un-livre/



Reply to: