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/lzma | |
parent | 53bae0fab06fe89b3e2904f37708045eda46ecc6 (diff) |
Add diverts to work around binpack on tvos
Diffstat (limited to 'data/lzma')
-rwxr-xr-x | data/lzma/_metadata/postrm.appletvos-arm64 | 8 | ||||
-rwxr-xr-x | data/lzma/_metadata/preinst.appletvos-arm64 | 8 |
2 files changed, 16 insertions, 0 deletions
diff --git a/data/lzma/_metadata/postrm.appletvos-arm64 b/data/lzma/_metadata/postrm.appletvos-arm64 new file mode 100755 index 000000000..6edb88182 --- /dev/null +++ b/data/lzma/_metadata/postrm.appletvos-arm64 @@ -0,0 +1,8 @@ +#!/bin/sh + +if [ remove = "$1" -o abort-install = "$1" -o disappear = "$1" ]; then + for file in lzmadec lzmainfo; do + dpkg-divert --package lzma --remove --rename \ + --divert /usr/bin/.${bin}.xz /usr/bin/${bin} + done +fi diff --git a/data/lzma/_metadata/preinst.appletvos-arm64 b/data/lzma/_metadata/preinst.appletvos-arm64 new file mode 100755 index 000000000..05e1d5bb5 --- /dev/null +++ b/data/lzma/_metadata/preinst.appletvos-arm64 @@ -0,0 +1,8 @@ +#!/bin/sh + +if [ upgrade != "$1" ]; then + for bin in lzmadec lzmainfo; do + dpkg-divert --package lzma --add --rename \ + --divert /usr/bin/.${bin}.xz /usr/bin/${bin} + done +fi |