summary refs log tree commit diff
diff options
context:
space:
mode:
authorAndrew Morgan <1342360+anoadragon453@users.noreply.github.com>2019-10-19 21:17:20 +0200
committerGitHub <noreply@github.com>2019-10-19 21:17:20 +0200
commitf6ea4f5b4538d21c208f50234c745a10271b8e28 (patch)
treed6ada011ff2844441e67f0cba2306ff6ccd88ad8
parentDelete format_tap.py (#6219) (diff)
downloadsynapse-github/anoa/dpkg_force.tar.xz
Replace deprecated --force dpkg option github/anoa/dpkg_force anoa/dpkg_force
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
-rw-r--r--debian/matrix-synapse-py3.postinst2
1 files changed, 1 insertions, 1 deletions
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