diff options
author | Sam Bingner <sam@bingner.com> | 2019-12-03 11:29:21 -1000 |
---|---|---|
committer | Sam Bingner <sam@bingner.com> | 2019-12-05 13:30:43 -1000 |
commit | b14db911a4316f4cf2802d8653b0e9e4052570c3 (patch) | |
tree | eb0a1c92877d3696ceeceef848fa862f4ef8ad2b /data/vim/_metadata | |
parent | 53bae0fab06fe89b3e2904f37708045eda46ecc6 (diff) |
Add diverts to work around binpack on tvos
Diffstat (limited to 'data/vim/_metadata')
-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 |