From b14db911a4316f4cf2802d8653b0e9e4052570c3 Mon Sep 17 00:00:00 2001 From: Sam Bingner Date: Tue, 3 Dec 2019 11:29:21 -1000 Subject: Add diverts to work around binpack on tvos --- data/vim/_metadata/postrm.appletvos-arm64 | 10 ++++++++++ data/vim/_metadata/preinst.appletvos-arm64 | 10 ++++++++++ 2 files changed, 20 insertions(+) create mode 100755 data/vim/_metadata/postrm.appletvos-arm64 create mode 100755 data/vim/_metadata/preinst.appletvos-arm64 (limited to 'data/vim/_metadata') 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 -- cgit v1.2.3