pkgdep/git: Don't fail if extra packages cannot be installed

All of these packages are not available on some distros, e.g.
Clearlinux.

Change-Id: I9045681586992c602ff7c95a0caca739e548ab60
Signed-off-by: Michal Berger <michalx.berger@intel.com>
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/4458
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Reviewed-by: Mellanox Build Bot
This commit is contained in:
Michal Berger 2020-09-25 17:26:20 +02:00 committed by Tomasz Zawadzki
parent 057c92e3d8
commit b4fc019be1

View File

@ -256,13 +256,14 @@ function install_git() {
function install_extra_pkgs() {
if [[ $INSTALL_QAT == true ]]; then
install libudev-devel || install libudev-dev
install libudev-devel || install libudev-dev || :
fi
if [[ $INSTALL_QEMU == true ]]; then
install qemu-system-x86 qemu-img \
|| install qemu-system-x86 qemu-utils \
|| install qemu
|| install qemu \
|| :
fi
}