Control: reassign -1 ucf
Control: retitle -1 ucf: Use DPKG_FORCE to handle dpkg --force-* options

On Mon, 2020-05-11 at 22:39:10 -0700, Manoj Srivastava wrote:
> severity 925375 wishlist
> retitle 925375 dpkg could set confnew/confold env variables for ucf

>         Yes, dpkg and ucf are independent, and they usually operate on
>  different files. dpkg does not take any action specificallyy witgh ucf
>  in mind, that is the domain of the maintainer scripts installed by
>  individual packages. Perhaps the communication might be better
> 
>         As for UCF_FORCE_CONFFNEW, there is a treadeoff betweem just
>  replacing the configuration file versus leaving random files all over
>  /etc; the default action is to not clutter. As you have
>  discovcered. RETAIN_OLD=YES allows the user to override that choice.

So, dpkg has supported setting a DPKG_FORCE environment variable since
1.19.5, one of the reasons was precisely having ucf in mind. :)

The exact semantics are documented in dpkg(1).

Thanks,
Guillem

Reply via email to