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.

** Patch added: "previous-error.patch"
   
https://bugs.launchpad.net/ubuntu/+source/apport/+bug/1007637/+attachment/3230227/+files/previous-error.patch

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1007637

Title:
  ubuntu general hook should check to see if package install failure has
  already happened

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apport/+bug/1007637/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to