|
|
@@ -25,6 +25,7 @@
|
|
|
#include <sys/wait.h>
|
|
|
#include <signal.h>
|
|
|
#include <errno.h>
|
|
|
+#include <string.h>
|
|
|
#include <stdio.h>
|
|
|
#include <sstream>
|
|
|
#include <map>
|
|
|
@@ -976,6 +977,12 @@ void pkgDPkgPM::WriteApportReport(const char *pkgpath, const char *errormsg)
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
+ // do not report disk-full failures
|
|
|
+ if(strstr(errormsg, strerror(ENOSPC)) != NULL) {
|
|
|
+ std::clog << _("No apport report written because the error message indicates a disk full error") << std::endl;
|
|
|
+ return;
|
|
|
+ }
|
|
|
+
|
|
|
// get the pkgname and reportfile
|
|
|
pkgname = flNotDir(pkgpath);
|
|
|
pos = pkgname.find('_');
|