Skip to content

Commit

Permalink
[barefoot][platform] Fix sonic-platform host installation (#6696)
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
vboykox committed Feb 6, 2021
1 parent d2b8b94 commit 3f2a493
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/sh

python2 -m pip uninstall -y sonic-platform
python3 -m pip uninstall -y sonic-platform

#DEBHELPER#
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/sh

python2 -m pip uninstall -y sonic-platform
python3 -m pip uninstall -y sonic-platform

#DEBHELPER#
6 changes: 6 additions & 0 deletions platform/barefoot/sonic-platform-modules-bfn/debian/prerm
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/sh

python2 -m pip uninstall -y sonic-platform
python3 -m pip uninstall -y sonic-platform

#DEBHELPER#

0 comments on commit 3f2a493

Please sign in to comment.