Tools: install-prereqs-ubuntu: only install realpath package if available

This has been rolled into coreutils in more recent Ubuntus
This commit is contained in:
Peter Barker 2018-05-15 12:52:03 +10:00
parent 3aefa6894c
commit 5f44327dab
1 changed files with 5 additions and 1 deletions

View File

@ -11,7 +11,7 @@ PX4_PKGS="python-argparse openocd flex bison libncurses5-dev \
zip genromfs python-empy cmake cmake-data"
ARM_LINUX_PKGS="g++-arm-linux-gnueabihf pkg-config-arm-linux-gnueabihf"
# python-wxgtk packages are added to SITL_PKGS below
SITL_PKGS="libtool libxml2-dev libxslt1-dev python-dev python-pip python-setuptools python-matplotlib python-serial python-scipy python-opencv python-numpy python-pyparsing realpath xterm"
SITL_PKGS="libtool libxml2-dev libxslt1-dev python-dev python-pip python-setuptools python-matplotlib python-serial python-scipy python-opencv python-numpy python-pyparsing xterm"
ASSUME_YES=false
QUIET=false
@ -86,6 +86,10 @@ else
SITL_PKGS+=" python-wxgtk2.8"
fi
if apt-cache search realpath; then
SITL_PKGS+=" realpath"
fi
$APT_GET install $BASE_PKGS $SITL_PKGS $PX4_PKGS $ARM_LINUX_PKGS
sudo pip2 -q install -U $PYTHON_PKGS