diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-15 05:55:35 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-15 05:55:35 +0000 |
commit | 0e05dd0e4d67d88ca51780dafe4029744269e6fa (patch) | |
tree | b49073fa569d8d4fbcc7002cf4df72fa840780c1 /debian/python3-uno.preinst.in | |
parent | Adding upstream version 4:24.2.0. (diff) | |
download | libreoffice-0e05dd0e4d67d88ca51780dafe4029744269e6fa.tar.xz libreoffice-0e05dd0e4d67d88ca51780dafe4029744269e6fa.zip |
Adding debian version 4:24.2.0-1.debian/4%24.2.0-1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/python3-uno.preinst.in')
-rw-r--r-- | debian/python3-uno.preinst.in | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/debian/python3-uno.preinst.in b/debian/python3-uno.preinst.in new file mode 100644 index 0000000000..4cf03bdad8 --- /dev/null +++ b/debian/python3-uno.preinst.in @@ -0,0 +1,19 @@ +#!/bin/sh + +set -e + +# https://cgit.freedesktop.org/libreoffice/core/commit/?id=968166ba4ee96f7c9053c8f4c88ac82381ff7cf4 +if [ "$1" = "upgrade" ] && dpkg --compare-versions "$2" lt "4:24.2.0~beta1"; then + echo "Removing obsolete configuration file /etc/libreoffice/registry/pyuno.xcd ..." + # It was unused anyway and thus no need to keep any (noop) adaptions here. But do it this + # way for policy sake... + if [ `ucfq -w /etc/libreoffice/registry/pyuno.xcd | cut -d: -f4` = "Yes" ]; then + mv /etc/libreoffice/registry/pyuno.xcd /etc/libreoffice/registry/pyuno.xcd.dpkg-bak + else + rm -f /etc/libreoffice/registry/pyuno.xcd + fi + ucf --purge /etc/libreoffice/registry/pyuno.xcd + ucfr --purge python3-uno /etc/libreoffice/registry/pyuno.xcd +fi + +#DEBHELPER# |