Commit 71af065b authored by Frédéric Leroy's avatar Frédéric Leroy

build_helper: move uhd to not break apt-get remove

uhd is not part of ubuntu standard repositories >= 14.04.
Move the removal of uhd in its own space and do not fail if it doesn't exists.
parent 0bca3ea5
...@@ -213,7 +213,8 @@ install_gnutls_from_source(){ ...@@ -213,7 +213,8 @@ install_gnutls_from_source(){
check_install_usrp_uhd_driver(){ check_install_usrp_uhd_driver(){
#first we remove old installation #first we remove old installation
$SUDO apt-get remove uhd libuhd-dev libuhd003 uhd-host -y $SUDO apt-get remove -y uhd || true
$SUDO apt-get remove libuhd-dev libuhd003 uhd-host -y
v=$(lsb_release -cs) v=$(lsb_release -cs)
$SUDO apt-add-repository --remove "deb http://files.ettus.com/binaries/uhd/repo/uhd/ubuntu/$v $v main" $SUDO apt-add-repository --remove "deb http://files.ettus.com/binaries/uhd/repo/uhd/ubuntu/$v $v main"
#The new USRP repository #The new USRP repository
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment