diff options
author | David Kalnischkies <david@kalnischkies.de> | 2016-07-21 15:54:22 +0200 |
---|---|---|
committer | David Kalnischkies <david@kalnischkies.de> | 2016-07-22 16:05:10 +0200 |
commit | 84255101ee38693aea2fd456cf0da174434afa01 (patch) | |
tree | 31b750bbda22bd39b32d7468fa258d4afee37b3e /apt-pkg/deb/dpkgpm.cc | |
parent | e04a6ce61db5e5eaf4f954626c7833f00cdb5992 (diff) |
use a configurable location for apport report storage
Hardcoding /var/crash means we can't test it properly and it isn't
really our style.
Diffstat (limited to 'apt-pkg/deb/dpkgpm.cc')
-rw-r--r-- | apt-pkg/deb/dpkgpm.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apt-pkg/deb/dpkgpm.cc b/apt-pkg/deb/dpkgpm.cc index 6556f232e..0c61a5e36 100644 --- a/apt-pkg/deb/dpkgpm.cc +++ b/apt-pkg/deb/dpkgpm.cc @@ -1741,7 +1741,8 @@ void pkgDPkgPM::WriteApportReport(const char *pkgpath, const char *errormsg) // we overwrite it. This is the same behaviour as apport // - if we have a report with the same pkgversion already // then we skip it - reportfile = flCombine("/var/crash",pkgname+".0.crash"); + _config->CndSet("Dir::Apport", "var/crash"); + reportfile = flCombine(_config->FindDir("Dir::Apport", "var/crash"), pkgname+".0.crash"); if(FileExists(reportfile)) { struct stat buf; |