From f6ea4f5b4538d21c208f50234c745a10271b8e28 Mon Sep 17 00:00:00 2001 From: Andrew Morgan <1342360+anoadragon453@users.noreply.github.com> Date: Sat, 19 Oct 2019 21:17:20 +0200 Subject: Replace deprecated --force dpkg option While watching @Half-Shot install his new Synapse dpkg popped out an error that `--force` was deprecated. This was on Ubuntu 19.04. Not sure if the `--force-all` option is supported by older distributions that we support --- debian/matrix-synapse-py3.postinst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/debian/matrix-synapse-py3.postinst b/debian/matrix-synapse-py3.postinst index c0dd7e5534..899f2e8357 100644 --- a/debian/matrix-synapse-py3.postinst +++ b/debian/matrix-synapse-py3.postinst @@ -44,7 +44,7 @@ EOF for DIR in /var/lib/matrix-synapse /var/log/matrix-synapse /etc/matrix-synapse; do if ! dpkg-statoverride --list --quiet $DIR >/dev/null; then - dpkg-statoverride --force --quiet --update --add $USER nogroup 0755 $DIR + dpkg-statoverride --force-all --quiet --update --add $USER nogroup 0755 $DIR fi done -- cgit 1.5.1