From 8e3bbe2d568c14dad93f7f1deafc29092dac4ecb Mon Sep 17 00:00:00 2001 From: vishesh92 Date: Thu, 21 May 2026 14:35:28 +0530 Subject: [PATCH] Fix Ubuntu package installation --- debian/cloudstack-common.postinst | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/debian/cloudstack-common.postinst b/debian/cloudstack-common.postinst index aa99edaee064..682b11a2fa1e 100644 --- a/debian/cloudstack-common.postinst +++ b/debian/cloudstack-common.postinst @@ -21,12 +21,12 @@ set -e CLOUDUTILS_DIR="/usr/share/pyshared/" DIST_DIR=$(python3 -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))") -if which pycompile >/dev/null 2>&1; then - pycompile -p cloudstack-common +if which py3compile >/dev/null 2>&1; then + py3compile -p cloudstack-common fi -if which pycompile >/dev/null 2>&1; then - pycompile -p cloudstack-common /usr/share/cloudstack-common +if which py3compile >/dev/null 2>&1; then + py3compile -p cloudstack-common /usr/share/cloudstack-common fi cp $CLOUDUTILS_DIR/cloud_utils.py $DIST_DIR