ubuntu-22.04.3-desktop-amd64/casper/filesystem/var/lib/dpkg/info/python3-uno.postinst

29 lines
904 B
Bash
Executable File

#!/bin/sh
set -e
# Automatically added by dh_ucf/13.6ubuntu1
if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ]; then
ucf --three-way "/usr/lib/libreoffice/share/.registry/pyuno.xcd" "/etc/libreoffice/registry/pyuno.xcd"
ucfr --force python3-uno "/etc/libreoffice/registry/pyuno.xcd"
fi
# End automatically added section
# Automatically added by dh_python3
if command -v py3compile >/dev/null 2>&1; then
py3compile -p python3-uno:amd64
fi
if command -v pypy3compile >/dev/null 2>&1; then
pypy3compile -p python3-uno:amd64 || true
fi
# End automatically added section
# Automatically added by dh_python3
if command -v py3compile >/dev/null 2>&1; then
py3compile -p python3-uno:amd64 /usr/lib/libreoffice/program -V 3.10
fi
if command -v pypy3compile >/dev/null 2>&1; then
pypy3compile -p python3-uno:amd64 /usr/lib/libreoffice/program -V 3.10 || true
fi
# End automatically added section