This file is indexed.

/usr/share/apport/package-hooks/source_simple-scan.py is in simple-scan 3.4.1-0ubuntu1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
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')