diff options
author | Michael Vogt <michael.vogt@ubuntu.com> | 2008-02-01 15:46:07 +0100 |
---|---|---|
committer | Michael Vogt <michael.vogt@ubuntu.com> | 2008-02-01 15:46:07 +0100 |
commit | 5273f1bf4da222c54e7abe9f3c6482496f8e09fd (patch) | |
tree | 3da94ca6bf9a97ee45f9b60214ec446070d0f8b0 | |
parent | c63dd53856e58ccde7d1ec89302d2af0e8787b7e (diff) |
* apt-pkg/deb/dpkgpm.cc:
- add APT::Apport::MaxReports to limit the maximum number
of reports generated in a single run (default to 3)
-rw-r--r-- | apt-pkg/deb/dpkgpm.cc | 5 | ||||
-rw-r--r-- | debian/changelog | 8 |
2 files changed, 10 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 diff --git a/debian/changelog b/debian/changelog index 5bd5222cc..12b3b5ddc 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,11 @@ +apt (0.7.9ubuntu6) hardy; urgency=low + + * apt-pkg/deb/dpkgpm.cc: + - add APT::Apport::MaxReports to limit the maximum number + of reports generated in a single run (default to 3) + + -- + apt (0.7.9ubuntu5) hardy; urgency=low * Merged apt-authentication-reliabilty branch. This means |