Remove python pyc file before uninstall
I6520b51aac34060b5b90f94a016cec1827a4973f happens after uninstall, which leaves a dangling directory under /opt/rocm/libexec/rocm_smi. Removing __pycache__ before uninstall fixes the issue. Signed-off-by: Galantsev, Dmitrii <dmitrii.galantsev@amd.com> Change-Id: I695bd085d4a43b678b563b4c35f6d2e8ddfa7d7c
This commit is contained in:
@@ -4,6 +4,3 @@ if [ $1 -le 1 ] && [ "@ENABLE_LDCONFIG@" == "ON" ]; then
|
||||
rm -f /etc/ld.so.conf.d/x86_64-librocm_smi_lib.conf
|
||||
ldconfig
|
||||
fi
|
||||
|
||||
# remove pyc file generated by python
|
||||
rm -rf @CPACK_PACKAGING_INSTALL_PREFIX@/@CMAKE_INSTALL_LIBEXECDIR@/rocm_smi/__pycache__
|
||||
|
||||
Executable
+5
@@ -0,0 +1,5 @@
|
||||
if [ $1 -le 1 ]; then
|
||||
# perform the below actions for rpm remove($1=0) or upgrade($1=1) operations
|
||||
# remove pyc file generated by python
|
||||
rm -rf @CPACK_PACKAGING_INSTALL_PREFIX@/@CMAKE_INSTALL_LIBEXECDIR@/rocm_smi/__pycache__
|
||||
fi
|
||||
Reference in New Issue
Block a user