diff options
author | Matt Zimmerman <mdz@ubuntu.com> | 2009-08-06 17:44:51 +0100 |
---|---|---|
committer | Matt Zimmerman <mdz@ubuntu.com> | 2009-08-06 17:44:51 +0100 |
commit | 076c46e5fe4a0ec150952017650c4cc778dc2fd2 (patch) | |
tree | c24d586207aa133b032a6c1f24c63f474c4f6b25 /apt-pkg/deb | |
parent | 056539eeb8eb84cea65c0c15466111b978ee156d (diff) |
* apt-pkg/deb/dpkgpm.cc:
- Suppress apport reports on dpkg short reads (these I/O errors are not
generally indicative of a bug in the packaging)
Diffstat (limited to 'apt-pkg/deb')
-rw-r--r-- | apt-pkg/deb/dpkgpm.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/apt-pkg/deb/dpkgpm.cc b/apt-pkg/deb/dpkgpm.cc index 4403eaefe..3e23720e0 100644 --- a/apt-pkg/deb/dpkgpm.cc +++ b/apt-pkg/deb/dpkgpm.cc @@ -1078,6 +1078,13 @@ void pkgDPkgPM::WriteApportReport(const char *pkgpath, const char *errormsg) return; } + // do not report dpkg I/O errors + // XXX - this message is localized, but this only matches the English version. This is better than nothing. + if(strstr(errormsg, "short read in buffer_copy (")) { + std::clog << _("No apport report written because the error message indicates a dpkg I/O error") << std::endl; + return; + } + // get the pkgname and reportfile pkgname = flNotDir(pkgpath); pos = pkgname.find('_'); |