diff options
author | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2014-07-23 18:35:13 +0200 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2014-07-23 18:35:13 +0200 |
commit | 608e7e94423585d4fff5e31c9c9a98b3165ed3c9 (patch) | |
tree | d6aaa12c05632529f95e00c8726f8ba0b2e0dc3c /debian/source_simple-scan.py | |
parent | 44a1fdd0075c7818b65d4191290cdce733687146 (diff) |
new maintainer, new upstream releasedebian/3.13.4.2-1
Diffstat (limited to 'debian/source_simple-scan.py')
-rw-r--r-- | debian/source_simple-scan.py | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/debian/source_simple-scan.py b/debian/source_simple-scan.py new file mode 100644 index 0000000..6fab46c --- /dev/null +++ b/debian/source_simple-scan.py @@ -0,0 +1,23 @@ +'''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') +driver_packages = ['libsane', 'libsane-extras', 'hplip', 'hpoj'] + +def add_info(report): + attach_hardware(report) + versions = '' + for package in driver_packages: + try: + version = packaging.get_version(package) + except ValueError: + version = 'N/A' + versions += '%s %s\n' % (package, version) + report['DriverPackageVersions'] = versions + attach_file_if_exists(report, LOG_FILE, 'SimpleScanLog') |