From 60ab494c25934b43d450608984241b80e3822465 Mon Sep 17 00:00:00 2001 From: dahn Date: Tue, 1 Aug 2023 01:34:05 +0200 Subject: [PATCH] packaging: unalias cp before package upgrade (#7722) --- packaging/centos8/cloud.spec | 1 + 1 file changed, 1 insertion(+) diff --git a/packaging/centos8/cloud.spec b/packaging/centos8/cloud.spec index a6b148afbe9..fdaf155ed73 100644 --- a/packaging/centos8/cloud.spec +++ b/packaging/centos8/cloud.spec @@ -392,6 +392,7 @@ install -D tools/whisker/LICENSE ${RPM_BUILD_ROOT}%{_defaultdocdir}/%{name}-inte %posttrans common +unalias cp python_dir=$(python3 -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))") if [ ! -z $python_dir ];then cp -f -r /usr/share/cloudstack-common/python-site/* $python_dir/