Source: nginx Severity: wishlist Dear Maintainer,
Ubuntu's nginx package carries an apport hook for use in Ubuntu's CI to validate the package. It would help Ubuntu minimize delta with Debian if you could include this apport hook in the Debian package. Its presence will have no effect on Debian's users. I have attached debian/apport/source_nginx.py for your consideration. Thank you, Bryce -- System Information: Debian Release: bullseye/sid APT prefers focal-updates APT policy: (500, 'focal-updates'), (500, 'focal-security'), (500, 'focal'), (100, 'focal-backports') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 5.4.0-37-generic (SMP w/12 CPU cores) Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE Locale: LANG=C, LC_CTYPE=C (charmap=UTF-8) (ignored: LC_ALL set to en_US.UTF-8), LANGUAGE=en_US:en (charmap=UTF-8) (ignored: LC_ALL set to en_US.UTF-8) Shell: /bin/sh linked to /usr/bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled
''' apport package hook for nginx packages Copyright (c) 2015, Thomas Ward <tew...@ubuntu.com> ''' import apport.hookutils import os import subprocess def add_info(report, ui): if (report['Package'].split()[0] != 'nginx-common' and report['ProblemType'] == 'Package' and os.path.isdir('/run/systemd/system')): report['Journalctl_Nginx.txt'] = apport.hookutils.command_output( ['journalctl', '-xe', '--unit=nginx.service']) report['SystemctlStatusFull_Nginx.txt'] = subprocess.Popen( ['systemctl', '-l', 'status', 'nginx.service'], stdout=subprocess.PIPE).communicate()[0]