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>
changes/26/586926/2
Paul Belanger 4 years ago
parent 50df1cb5b9
commit 1e818fa0af
No known key found for this signature in database
GPG Key ID: 611A80832067AF38
  1. 13
      tools/install_bindep.sh

@ -13,17 +13,8 @@
# License for the specific language governing permissions and limitations
# 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)
if [ -z $PACKAGES ]; then
if [ -z "$PACKAGES" ]; then
exit
fi
@ -31,5 +22,5 @@ if apt-get -v > /dev/null 2>&1 ; then
sudo apt-get update
sudo apt-get --assume-yes install $PACKAGES
else
sudo $YUM install -y $PACKAGES
sudo dnf install -y $PACKAGES
fi

Loading…
Cancel
Save