Package: orphan-sysvinit-scripts
Severity: normal
Tags: patch

Matthew,

As discussed on IRC, d/postrm purge includes an extra full stop in the filename
of droppings it looks for.

I think the attached patch is better.

Cheers,

Mark

-- System Information:
Debian Release: 12.8
merged-usr: no
Architecture: amd64 (x86_64)

Kernel: Linux 6.1.0-26-amd64 (SMP w/2 CPU threads; PREEMPT)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_GB:en
Shell: /bin/sh linked to /bin/dash
Init: OpenRC (via /run/openrc), PID 1: init

Versions of packages orphan-sysvinit-scripts depends on:
ii  ucf  3.0043+nmu1

orphan-sysvinit-scripts recommends no packages.

orphan-sysvinit-scripts suggests no packages.
>From 66a06ad0b20cef22c983cd64e0a2e3319ee70232 Mon Sep 17 00:00:00 2001
From: Mark Hindley <[email protected]>
Date: Thu, 14 Nov 2024 07:15:34 +0000
Subject: [PATCH] d/postrm: fix purging droppings; remove extra full stop in
 filename.

---
 debian/postrm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/debian/postrm b/debian/postrm
index 4b00bf4..235ce9c 100644
--- a/debian/postrm
+++ b/debian/postrm
@@ -9,7 +9,7 @@ case "$1" in
 	if which ucfq >/dev/null ; then
 	    for cf in $(ucfq -w orphan-sysvinit-scripts | cut -f 1 -d ':') ; do
 		for ext in '~' '%' .bak .ucf-new .ucf-old .ucf-dist;  do
-		    rm -f "${cf}.$ext"
+		    rm -f "${cf}${ext}"
 		done
 		rm -f "$cf"
 		if which ucf >/dev/null ; then
-- 
2.39.5

Reply via email to