]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/deb/dpkgpm.cc
apt-pkg/deb/dpkgpm.cc: update string matching for prevent bug reports
[apt.git] / apt-pkg / deb / dpkgpm.cc
index b9f49365dd090dae1994f09b39e44e0f392c099a..859aff044a0db62e0b0bcd72a2804a88526beba1 100644 (file)
@@ -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;
    }