Skip to content

Commit 60ab494

Browse files
authored
packaging: unalias cp before package upgrade (apache#7722)
1 parent 2bb0791 commit 60ab494

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

packaging/centos8/cloud.spec

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -392,6 +392,7 @@ install -D tools/whisker/LICENSE ${RPM_BUILD_ROOT}%{_defaultdocdir}/%{name}-inte
392392

393393
%posttrans common
394394

395+
unalias cp
395396
python_dir=$(python3 -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")
396397
if [ ! -z $python_dir ];then
397398
cp -f -r /usr/share/cloudstack-common/python-site/* $python_dir/

0 commit comments

Comments
 (0)