summaryrefslogtreecommitdiff
path: root/apt-pkg/deb
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2011-01-11 18:27:15 +0100
committerMichael Vogt <michael.vogt@ubuntu.com>2011-01-11 18:27:15 +0100
commitfb9caf55cf7e63e3cc7ae4878279ab98b68b3a6e (patch)
tree564b2d29f4609ab961cebabbbc7b01ccda185220 /apt-pkg/deb
parentff5037a07efcda5eabb453582c71586475c34b86 (diff)
* apt-pkg/deb/dpkgpm.cc:
- ignore lzma "Cannot allocate memory" errors, thanks to Brian Murray
Diffstat (limited to 'apt-pkg/deb')
-rw-r--r--apt-pkg/deb/dpkgpm.cc3
1 files changed, 2 insertions, 1 deletions
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;
}