[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 GitHub
parent d2b8b94a64
commit 3f2a493c14
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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#