summaryrefslogtreecommitdiff
path: root/debian
diff options
context:
space:
mode:
authorAlessio Treglia <quadrispro@ubuntu.com>2010-05-13 20:41:34 +0200
committerAlessio Treglia <quadrispro@ubuntu.com>2010-05-13 20:41:34 +0200
commitbac44b40b44e8d92325a3e5d8f6cd132d6ebb383 (patch)
treefb00c4b0cd94b79000d162bb358a6cc362fc6b5c /debian
parent3f68b5d7ce102bba18e158c2843309d8883945c6 (diff)
debian/source_simple-scan.py: Sync with Ubuntu.
Diffstat (limited to 'debian')
-rw-r--r--debian/source_simple-scan.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/debian/source_simple-scan.py b/debian/source_simple-scan.py
index f889cde..6fab46c 100644
--- a/debian/source_simple-scan.py
+++ b/debian/source_simple-scan.py
@@ -8,7 +8,16 @@ 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')