0xV3NOMx
Linux ip-172-26-7-228 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64



Your IP : 3.144.40.90


Current Path : /proc/thread-self/root/usr/share/apport/package-hooks/
Upload File :
Current File : //proc/thread-self/root/usr/share/apport/package-hooks/ureadahead.py

'''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'])