← Back to team overview

apport-hackers team mailing list archive

[Merge] lp:~mvo/apport/add-df-output-to-packagehook into lp:apport

 

Michael Vogt has proposed merging lp:~mvo/apport/add-df-output-to-packagehook into lp:apport.

Requested reviews:
  Apport upstream developers (apport-hackers)

For more details, see:
https://code.launchpad.net/~mvo/apport/add-df-output-to-packagehook/+merge/63561

This adds the df output to the package_hook (as per foundations-o-better-apport-package-bugs)
-- 
https://code.launchpad.net/~mvo/apport/add-df-output-to-packagehook/+merge/63561
Your team Apport upstream developers is requested to review the proposed merge of lp:~mvo/apport/add-df-output-to-packagehook into lp:apport.
=== modified file 'data/package_hook'
--- data/package_hook	2011-02-03 13:23:25 +0000
+++ data/package_hook	2011-06-06 14:59:24 +0000
@@ -13,6 +13,7 @@
 
 import sys, optparse, os.path, os
 import apport, apport.fileutils
+import subprocess
 
 def mkattrname(path):
     '''Convert a file path to a problem report attribute name.'''
@@ -46,6 +47,7 @@
 pr['Package'] = options.package
 pr['SourcePackage'] = apport.packaging.get_source(options.package)
 pr['ErrorMessage'] = (sys.stdin, False)
+pr['DfOutput'] = subprocess.check_output(["df"])
 for l in (options.logs or []):
     if os.path.isfile(l):
 	pr[mkattrname(l)] = (l,)