diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-06 02:05:42 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-06 02:05:42 +0000 |
commit | 52506cce144537546ffd519c505a9d67d25b284b (patch) | |
tree | 04dae99a61727033fb475f415a1355fefda04641 /debian/powerline-gitstatus.postrm | |
parent | Adding upstream version 1.3.1. (diff) | |
download | powerline-gitstatus-52506cce144537546ffd519c505a9d67d25b284b.tar.xz powerline-gitstatus-52506cce144537546ffd519c505a9d67d25b284b.zip |
Adding debian version 1.3.1-1.debian/1.3.1-1debian
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/powerline-gitstatus.postrm')
-rwxr-xr-x | debian/powerline-gitstatus.postrm | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/debian/powerline-gitstatus.postrm b/debian/powerline-gitstatus.postrm new file mode 100755 index 0000000..88cb4e6 --- /dev/null +++ b/debian/powerline-gitstatus.postrm @@ -0,0 +1,31 @@ +#!/bin/sh + +set -e + +case "${1}" in + remove) + for FILE in /usr/share/powerline/config_files/colorschemes/default.json \ + /usr/share/powerline/config_files/themes/shell/default.json \ + /usr/share/powerline/config_files/themes/shell/default_leftonly.json + do + DIVERTION="/usr/share/powerline-gitstatus/divert/$(basename $(dirname ${FILE}))_$(basename ${FILE}).powerline" + + dpkg-divert --package powerline-gitstatus --quiet --remove --rename --divert "${DIVERTION}" "${FILE}" + done + + rmdir -p --ignore-fail-on-non-empty /usr/share/powerline-gitstatus/divert > /dev/null 2>&1 || true + ;; + + purge|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) + + ;; + + *) + echo "postrm called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +#DEBHELPER# + +exit 0 |