Bug#1127467: sitesummary: correct debdiff

Hector Cao <[email protected]> Tue, 10 Feb 2026 11:30:36 +0100
Newsgroups gmane.linux.debian.devel.education
Message-ID <177071943645.35628.6519555918733092158.reportbug__7795.07128042809$1770719617$gmane$org@pchector>
This is a multi-part MIME message sent by reportbug.


--===============3926885578738877024==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Package: sitesummary
Version: 0.1.60
Followup-For: Bug #1127467
User: [email protected]
Usertags: origin-ubuntu resolute ubuntu-patch
Control: tags -1 patch

Dear Maintainer,

Hello,

Here is the correct debdiff

Best,

-- System Information:
Debian Release: bookworm/sid
  APT prefers jammy-updates
  APT policy: (500, 'jammy-updates'), (500, 'jammy-security'), (500, 'jammy')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.19.0-41-generic (SMP w/4 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_WARN, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

--===============3926885578738877024==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="sitesummary_0.1.60ubuntu1.debdiff"

diff -Nru sitesummary-0.1.60build1/collect.d/system sitesummary-0.1.60ubuntu1/collect.d/system
--- sitesummary-0.1.60build1/collect.d/system	2023-09-09 18:52:54.000000000 +0200
+++ sitesummary-0.1.60ubuntu1/collect.d/system	2026-02-09 10:12:40.000000000 +0100
@@ -58,7 +58,11 @@
 
 # Document current runlevel, useful to differenciate LTSP
 # thin clients from diskless workstations.
-runlevel > runlevel
+if command -v systemctl >/dev/null 2>&1 && [ -d /run/systemd/system ]; then
+    systemctl list-units --type=target --state=active > runlevel
+elif command -v runlevel >/dev/null 2>&1; then
+    runlevel > runlevel
+fi

--===============3926885578738877024==--