[barefoot][platform] Fix sonic-platform host installation (#6696)

prerm is needed for platform modules package to be properly removed.
Added prerm to remove installed in postinst wheel packages.

Signed-off-by: Volodymyr Boyko <volodymyrx.boiko@intel.com>
This commit is contained in:
Volodymyr Boiko 2021-02-06 21:33:06 +02:00 committed by Guohan Lu
parent bb8a145234
commit 742bbed255
3 changed files with 18 additions and 0 deletions

View File

@ -0,0 +1,6 @@
#!/bin/sh
python2 -m pip uninstall -y sonic-platform
python3 -m pip uninstall -y sonic-platform
#DEBHELPER#

View File

@ -0,0 +1,6 @@
#!/bin/sh
python2 -m pip uninstall -y sonic-platform
python3 -m pip uninstall -y sonic-platform
#DEBHELPER#

View File

@ -0,0 +1,6 @@
#!/bin/sh
python2 -m pip uninstall -y sonic-platform
python3 -m pip uninstall -y sonic-platform
#DEBHELPER#