diff options
Diffstat (limited to 'data/vim')
-rwxr-xr-x | data/vim/_metadata/postrm.appletvos-arm64 | 10 | ||||
-rwxr-xr-x | data/vim/_metadata/preinst.appletvos-arm64 | 10 |
2 files changed, 20 insertions, 0 deletions
diff --git a/data/vim/_metadata/postrm.appletvos-arm64 b/data/vim/_metadata/postrm.appletvos-arm64 new file mode 100755 index 000000000..02c08825e --- /dev/null +++ b/data/vim/_metadata/postrm.appletvos-arm64 @@ -0,0 +1,10 @@ +#!/bin/sh + +if [ remove = "$1" -o abort-install = "$1" -o disappear = "$1" ]; then + for file in /usr/bin/vim /usr/bin/xxd + filename=$(basename $file) + dirname=$(dirname $file) + dpkg-divert --package vim --remove --rename \ + --divert ${dirname}/.${filename}.binpack $file + done +fi diff --git a/data/vim/_metadata/preinst.appletvos-arm64 b/data/vim/_metadata/preinst.appletvos-arm64 new file mode 100755 index 000000000..ec0109db2 --- /dev/null +++ b/data/vim/_metadata/preinst.appletvos-arm64 @@ -0,0 +1,10 @@ +#!/bin/sh + +if [ upgrade != "$1" ]; then + for file in /usr/bin/vim /usr/bin/xxd; do + filename=$(basename $file) + dirname=$(dirname $file) + dpkg-divert --package vim --add --rename \ + --divert ${dirname}/.${filename}.binpack $file + done +fi |