/usr/share/apport/package-hooks/ureadahead.py is in ureadahead 0.100.0-20.
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 | '''apport package hook for ureadahead
(c) 2009 Canonical Ltd.
Author: Scott James Remnant <scott@ubuntu.com>
'''
import os
import apport.hookutils
def add_info(report):
for f in os.listdir('/var/lib/ureadahead'):
if f == 'pack':
report['PackDump'] = apport.hookutils.command_output(['ureadahead', '--dump'])
elif f.endswith('.pack'):
report['PackDump'+f[:-5].title()] = apport.hookutils.command_output(['ureadahead', '--dump'])
|