Comment 1 for bug 1007637

Revision history for this message
Brian Murray (brian-murray) wrote :

An easy way to test this is to modify your /etc/default/grub configuration file so that is syntactically incorrect for example change the following:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"

and remove the trailing quote. Then if you try to execute:

sudo apt-get install --reninstall memtest86+

you'll have a package installation failure. If you do this two times you'll be prompted to report two package installation failures - which as previously discussed isn't really useful.

With the attached patch we create a copy of the DpkgTerminalLog without the most recent failure (created by trim_dpkg_log) and then check to see if the duplicate signature is found in the original version of the DpkgTerminalLog. If it is we prevent bug reporting.

This should be SRU'ed to Precise at least.