Files
rocm-systems/DEBIAN/prerm.in
T
Bill(Shuzhou) Liu 9f814e150e Correct the __pycache__ folder
Remove the __pycache__ in the folder libexec/rocm_smi

Change-Id: I0ad505ff7e7368d5fe86e1eee12080039edc7111
2022-03-24 09:44:33 -04:00

29 خطوط
470 B
Bash
Executable File

#!/bin/bash
set -e
rm_ldconfig() {
# left-hand term originates from ENABLE_LDCONFIG = ON/OFF at package build
if [ "@ENABLE_LDCONFIG@" == "ON" ]; then
rm -f /etc/ld.so.conf.d/x86_64-librocm_smi_lib.conf
ldconfig
fi
}
rm_pyc() {
# remove pyc file generated by python
rm -rf @CPACK_PACKAGING_INSTALL_PREFIX@/libexec/rocm_smi/__pycache__
}
case "$1" in
( remove | upgrade)
rm_ldconfig
rm_pyc
;;
( purge )
;;
( * )
exit 0
;;
esac