summaryrefslogtreecommitdiff
path: root/data/vim/_metadata
diff options
context:
space:
mode:
authorSam Bingner <sam@bingner.com>2019-12-03 11:29:21 -1000
committerSam Bingner <sam@bingner.com>2019-12-05 13:30:43 -1000
commitb14db911a4316f4cf2802d8653b0e9e4052570c3 (patch)
treeeb0a1c92877d3696ceeceef848fa862f4ef8ad2b /data/vim/_metadata
parent53bae0fab06fe89b3e2904f37708045eda46ecc6 (diff)
Add diverts to work around binpack on tvos
Diffstat (limited to 'data/vim/_metadata')
-rwxr-xr-xdata/vim/_metadata/postrm.appletvos-arm6410
-rwxr-xr-xdata/vim/_metadata/preinst.appletvos-arm6410
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