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/sqlite3/_metadata/postrm.appletvos-arm64 | 8 ++++++++ data/sqlite3/_metadata/preinst.appletvos-arm64 | 8 ++++++++ 2 files changed, 16 insertions(+) create mode 100755 data/sqlite3/_metadata/postrm.appletvos-arm64 create mode 100755 data/sqlite3/_metadata/preinst.appletvos-arm64 (limited to 'data/sqlite3/_metadata') diff --git a/data/sqlite3/_metadata/postrm.appletvos-arm64 b/data/sqlite3/_metadata/postrm.appletvos-arm64 new file mode 100755 index 000000000..f3a9ad425 --- /dev/null +++ b/data/sqlite3/_metadata/postrm.appletvos-arm64 @@ -0,0 +1,8 @@ +#!/bin/sh + +if [ remove = "$1" -o abort-install = "$1" -o disappear = "$1" ]; then + for bin in sqlite3; do + dpkg-divert --package sqlite3 --remove --rename \ + --divert /usr/bin/.${bin}.binpack /usr/bin/${bin} + done +fi diff --git a/data/sqlite3/_metadata/preinst.appletvos-arm64 b/data/sqlite3/_metadata/preinst.appletvos-arm64 new file mode 100755 index 000000000..6800da35b --- /dev/null +++ b/data/sqlite3/_metadata/preinst.appletvos-arm64 @@ -0,0 +1,8 @@ +#!/bin/sh + +if [ upgrade != "$1" ]; then + for bin in sqlite3; do + dpkg-divert --package sqlite3 --add --rename \ + --divert /usr/bin/.${bin}.binpack /usr/bin/${bin} + done +fi -- cgit v1.2.3