Some containers no longer have libunwind-14-dev in their repositories.
Remove this package only if it is installed.
Signed-off-by: Vincent Fu <vincent.fu@samsung.com>
librdmacm-dev
pkg-config
)
- echo "Removing libunwind-14-dev because of conflicts with libunwind-dev"
- sudo apt remove -y libunwind-14-dev
+ if apt list --installed | grep -c "libunwind-14-dev"; then
+ echo "Removing libunwind-14-dev because of conflicts with libunwind-dev"
+ sudo apt remove -y libunwind-14-dev
+ fi
if [ "${CI_TARGET_OS}" == "linux" ] || [ "${CI_TARGET_OS}" == "ubuntu" ]; then
# Only for Ubuntu
pkgs+=(