From fb9caf55cf7e63e3cc7ae4878279ab98b68b3a6e Mon Sep 17 00:00:00 2001 From: Michael Vogt Date: Tue, 11 Jan 2011 18:27:15 +0100 Subject: * apt-pkg/deb/dpkgpm.cc: - ignore lzma "Cannot allocate memory" errors, thanks to Brian Murray --- apt-pkg/deb/dpkgpm.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'apt-pkg') diff --git a/apt-pkg/deb/dpkgpm.cc b/apt-pkg/deb/dpkgpm.cc index 79bea85fe..3e0964b05 100644 --- a/apt-pkg/deb/dpkgpm.cc +++ b/apt-pkg/deb/dpkgpm.cc @@ -1292,7 +1292,8 @@ void pkgDPkgPM::WriteApportReport(const char *pkgpath, const char *errormsg) } // do not report out-of-memory failures - if(strstr(errormsg, strerror(ENOMEM)) != NULL) { + if(strstr(errormsg, strerror(ENOMEM)) != NULL || + strstr(errormsg, "Cannot allocate memory") != NULL) { std::clog << _("No apport report written because the error message indicates a out of memory error") << std::endl; return; } -- cgit v1.2.3