summaryrefslogtreecommitdiff
path: root/apt-pkg/deb/dpkgpm.cc
diff options
context:
space:
mode:
Diffstat (limited to 'apt-pkg/deb/dpkgpm.cc')
-rw-r--r--apt-pkg/deb/dpkgpm.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/apt-pkg/deb/dpkgpm.cc b/apt-pkg/deb/dpkgpm.cc
index 8123a7aba..5ed6482fa 100644
--- a/apt-pkg/deb/dpkgpm.cc
+++ b/apt-pkg/deb/dpkgpm.cc
@@ -906,9 +906,8 @@ void pkgDPkgPM::WriteApportReport(const char *pkgpath, const char *errormsg)
if (_config->FindB("Dpkg::ApportFailureReport",true) == false)
return;
- // only report the first error if we are in StopOnError=false mode
- // to prevent bogus reports
- if((_config->FindB("Dpkg::StopOnError",true) == false) && pkgFailures > 1)
+ // only report the first error
+ if(pkgFailures > _config->FindI("APT::Apport::MaxReports", 3))
return;
// get the pkgname and reportfile