summaryrefslogtreecommitdiff
path: root/apt-pkg/deb/dpkgpm.cc
diff options
context:
space:
mode:
authorBrian Murray <brian@canonical.com>2011-06-15 14:02:51 -0700
committerBrian Murray <brian@canonical.com>2011-06-15 14:02:51 -0700
commit99289e32e190dbe4465f5c81b8f1cf749d20adeb (patch)
tree78fc7a3c0a7488cd84acdc4cb1368758ec20bfa7 /apt-pkg/deb/dpkgpm.cc
parentbf3778aac96b23b5f584c82b729036b287259848 (diff)
apt-pkg/deb/dpkgpm.cc: update string matching for prevent bug reports
Diffstat (limited to 'apt-pkg/deb/dpkgpm.cc')
-rw-r--r--apt-pkg/deb/dpkgpm.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/apt-pkg/deb/dpkgpm.cc b/apt-pkg/deb/dpkgpm.cc
index b9f49365d..859aff044 100644
--- a/apt-pkg/deb/dpkgpm.cc
+++ b/apt-pkg/deb/dpkgpm.cc
@@ -1317,14 +1317,14 @@ void pkgDPkgPM::WriteApportReport(const char *pkgpath, const char *errormsg)
// do not report out-of-memory failures
if(strstr(errormsg, strerror(ENOMEM)) != NULL ||
- strstr(errormsg, "Cannot allocate memory") != NULL) {
+ strstr(errormsg, "failed to allocate memory") != NULL) {
std::clog << _("No apport report written because the error message indicates a out of memory error") << std::endl;
return;
}
// do not report bugs regarding inaccessible local files
if(strstr(errormsg, strerror(ENOENT)) != NULL ||
- strstr(errormsg, "Cannot access archive") != NULL) {
+ strstr(errormsg, "cannot access archive") != NULL) {
std::clog << _("No apport report written because the error message indicates an issue on the local system") << std::endl;
return;
}