Remove python pyc file when uninstall
Remove python pyc file when uninstall.
Change-Id: I383faf8fcfaeeb346c9ee38c1aad8577a460281e
[ROCm/amdsmi commit: c37d4bac8f]
Αυτή η υποβολή περιλαμβάνεται σε:
υποβλήθηκε από
Shuzhou Liu
γονέας
a2586d1044
υποβολή
ee67414d43
@@ -10,9 +10,15 @@ rm_ldconfig() {
|
||||
fi
|
||||
}
|
||||
|
||||
rm_pyc() {
|
||||
# remove pyc file generated by python
|
||||
rm -rf @CPACK_PACKAGING_INSTALL_PREFIX@/rocm_smi/bin/__pycache__
|
||||
}
|
||||
|
||||
case "$1" in
|
||||
( remove | upgrade)
|
||||
rm_ldconfig
|
||||
rm_pyc
|
||||
;;
|
||||
( purge )
|
||||
;;
|
||||
|
||||
Αναφορά σε νέο ζήτημα
Block a user