aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--debian/changelog6
-rwxr-xr-xdebian/rules2
-rw-r--r--debian/source_indicator-power.py12
3 files changed, 18 insertions, 2 deletions
diff --git a/debian/changelog b/debian/changelog
index ea92d0e..d687035 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,12 +1,14 @@
-indicator-power (0.4-0ubuntu1) UNRELEASED; urgency=low
+indicator-power (0.4-0ubuntu1) oneiric; urgency=low
* New upstream release.
- Always select a device (LP: #810872)
- Use the dbus interface provided in g-s-d 3.1.4
* debian/control
- Added build depends for gnome-settings-daemon-dev >= 3.1.4
+ * debian/source_indicator-power.py
+ - Install apport hook to collect upower -d output
- -- Ken VanDine <ken.vandine@canonical.com> Tue, 19 Jul 2011 12:52:06 -0400
+ -- Ken VanDine <ken.vandine@canonical.com> Tue, 26 Jul 2011 16:34:30 -0400
indicator-power (0.3-0ubuntu1) oneiric; urgency=low
diff --git a/debian/rules b/debian/rules
index f5334e1..63a4ed6 100755
--- a/debian/rules
+++ b/debian/rules
@@ -15,3 +15,5 @@
override_dh_install:
find debian/indicator-power -name \*.la -delete
find debian/indicator-power -name \*.a -delete
+ mkdir -p debian/indicator-power/usr/share/apport/package-hooks/
+ cp debian/source_indicator-power.py debian/indicator-power/usr/share/apport/package-hooks/
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