Source: moon-buggy
Version: 1:1.0.51-16
Severity: normal

Hi

I'm trying to uniformise the maintainer scripts of games maintained by the 
Games Teams.

Please consider using dh-cruft that takes care of writing uniform .postrm 
scripts.

  https://salsa.debian.org/debian/moon-buggy/-/merge_requests/2

This way you would get hypothetical improvement in dh-cruft
without even having to change moon-buggy again.

Greetings

Alexandre



--- a/debian/control
+++ b/debian/control
@@ -3,6 +3,7 @@ Maintainer: Christian T. Steigies <[email protected]>
 Section: games
 Priority: optional
 Build-Depends: debhelper-compat (= 13),
+               dh-sequence-cruft,
                faketime,
                libncurses-dev,
                pkgconf,
--- a/debian/moon-buggy.postrm
+++ /dev/null
@@ -1,13 +0,0 @@
-#! /bin/sh
-set -e
-
-if [ "$1" = purge ]
-then
-  if [ -d /var/games/moon-buggy ]
-  then
-    rm -rf /var/games/moon-buggy/*
-    rmdir /var/games/moon-buggy
-  fi
-fi
-
-#DEBHELPER#
--- /dev/null
+++ b/debian/moon-buggy.purge
@@ -0,0 +1 @@
+/var/games/moon-buggy/

Reply via email to