Drop yum from tools/install_bindep.sh
There is only dnf for fedora now, and since we don't test on centos we can drop yum. Change-Id: I014cf6f5fb6b9fe7745e712cd201e683379dbcf6 Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This commit is contained in:
parent
50df1cb5b9
commit
1e818fa0af
|
@ -13,17 +13,8 @@
|
||||||
# License for the specific language governing permissions and limitations
|
# License for the specific language governing permissions and limitations
|
||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
function is_fedora {
|
|
||||||
[ -f /usr/bin/yum ] && cat /etc/*release | grep -q -e "Fedora"
|
|
||||||
}
|
|
||||||
|
|
||||||
YUM=yum
|
|
||||||
if is_fedora; then
|
|
||||||
YUM=dnf
|
|
||||||
fi
|
|
||||||
|
|
||||||
PACKAGES=$(bindep -b -f bindep.txt test || true)
|
PACKAGES=$(bindep -b -f bindep.txt test || true)
|
||||||
if [ -z $PACKAGES ]; then
|
if [ -z "$PACKAGES" ]; then
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -31,5 +22,5 @@ if apt-get -v > /dev/null 2>&1 ; then
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get --assume-yes install $PACKAGES
|
sudo apt-get --assume-yes install $PACKAGES
|
||||||
else
|
else
|
||||||
sudo $YUM install -y $PACKAGES
|
sudo dnf install -y $PACKAGES
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue