Skip to content

Commit 8e3bbe2

Browse files
committed
Fix Ubuntu package installation
1 parent 1fe486f commit 8e3bbe2

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

debian/cloudstack-common.postinst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@ set -e
2121
CLOUDUTILS_DIR="/usr/share/pyshared/"
2222
DIST_DIR=$(python3 -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")
2323

24-
if which pycompile >/dev/null 2>&1; then
25-
pycompile -p cloudstack-common
24+
if which py3compile >/dev/null 2>&1; then
25+
py3compile -p cloudstack-common
2626
fi
2727

28-
if which pycompile >/dev/null 2>&1; then
29-
pycompile -p cloudstack-common /usr/share/cloudstack-common
28+
if which py3compile >/dev/null 2>&1; then
29+
py3compile -p cloudstack-common /usr/share/cloudstack-common
3030
fi
3131

3232
cp $CLOUDUTILS_DIR/cloud_utils.py $DIST_DIR

0 commit comments

Comments
 (0)