PATCH: Don't blacklist packages that contain modified config files if dpkg is not going to prompt on them

Bug #135247 reported by Tuomas Jormola
2
Affects Status Importance Assigned to Milestone
unattended-upgrades (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

Recently I discovered that rsync was not automatically upgraded with a security update on one of my boxes but it was updated on others. The box runs an rsync server and obviously it had a modified /etc/rsyncd.conf and running unattended-upgrade -d revealed that due to this fact it wasn't being updated. However, I also have configured APT to supply dpkg with such command-line options that no config file prompt would occur. It doesn't make sense to blacklist packages that contain modified config files if APT/dpkg is configured in this way. This functionality can be achieved by including the following snippet in the apt.conf:

Dpkg {
        Options { "--force-confold" };
};

The attached patch will modify unattended-update to do that. If you like the idea, feel free to use it as is or as an inspiration for better implementation of the idea.

Revision history for this message
Tuomas Jormola (tjormola) wrote :
description: updated
Michael Vogt (mvo)
Changed in unattended-upgrades:
importance: Undecided → Medium
status: New → Confirmed
Michael Vogt (mvo)
Changed in unattended-upgrades:
status: Confirmed → Fix Committed
Revision history for this message
Michael Vogt (mvo) wrote :

unattended-upgrades (0.25.3ubuntu1) gutsy; urgency=low

  * merged patch from Tuomas Jormola to detect if
    dpkg --force-conf(new|old) is set (LP: #135247)

 -- Michael Vogt <email address hidden> Mon, 01 Oct 2007 13:53:05 +0200

Changed in unattended-upgrades:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.