summaryrefslogtreecommitdiff
path: root/debian/source_simple-scan.py
diff options
context:
space:
mode:
Diffstat (limited to 'debian/source_simple-scan.py')
-rw-r--r--debian/source_simple-scan.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/debian/source_simple-scan.py b/debian/source_simple-scan.py
new file mode 100644
index 0000000..f889cde
--- /dev/null
+++ b/debian/source_simple-scan.py
@@ -0,0 +1,14 @@
+'''apport package hook for simple-scan
+
+(c) 2010 Canonical Ltd.
+Author: Robert Ancell <robert.ancell@canonical.com>
+'''
+
+import os.path
+from apport.hookutils import *
+
+LOG_FILE = os.path.expanduser('~/.cache/simple-scan/simple-scan.log')
+
+def add_info(report):
+ attach_hardware(report)
+ attach_file_if_exists(report, LOG_FILE, 'SimpleScanLog')