aboutsummaryrefslogtreecommitdiff
path: root/debian/source_indicator-power.py
diff options
context:
space:
mode:
Diffstat (limited to 'debian/source_indicator-power.py')
-rw-r--r--debian/source_indicator-power.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/debian/source_indicator-power.py b/debian/source_indicator-power.py
new file mode 100644
index 0000000..ea0cf0f
--- /dev/null
+++ b/debian/source_indicator-power.py
@@ -0,0 +1,12 @@
+'''apport package hook for indicator-power
+
+(c) 2011 Canonical Ltd.
+Author: Ken VanDine <ken.vandine@ubuntu.com>
+'''
+
+from apport.hookutils import *
+from os import path
+
+def add_info(report):
+ report['UPowerDump'] = command_output(['upower', '-d'])
+ return report