From bb0bf6c786f33dd8c769ce633e31d87cc965a355 Mon Sep 17 00:00:00 2001 From: David Caldwell Date: Mon, 6 Sep 2021 14:25:02 -0700 Subject: [PATCH] debian/commit-patch.postinst: Add script to clean up byte-compiled dropping left behind by buggy old package --- debian/commit-patch.postinst | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 debian/commit-patch.postinst diff --git a/debian/commit-patch.postinst b/debian/commit-patch.postinst new file mode 100755 index 0000000..840c6a9 --- /dev/null +++ b/debian/commit-patch.postinst @@ -0,0 +1,15 @@ +#!/bin/sh + +set -e + +if [ "$1" = "configure" ]; then + if test -d /usr/share/emacs/site-lisp/commit-patch; then + # Due to a bug in the commit-patch-2.6-2 emacsen-remove script, the + # xemacs byte compiled files got purged instead of the emacs + # files. Detect this and clean them up now. + echo install/commit-patch: purging old version of byte-compiled files for emacs + rm -rf /usr/share/emacs/site-lisp/commit-patch + fi +fi + +#DEBHELPER# -- 2.51.2