Replace hardcoded yum command by package manager variable

Fix hardcoded yum command by package manager variable, PKG_MANAGER
in scripts/install-deps.sh. That was problem on Fedora where default
package manager is dnf and not yum.

Change-Id: I2dbec079adbfcab71e46e086fcd201a5175f22d5
Story: 2005451
Task: 30503
This commit is contained in:
Radoslaw Smigielski 2019-04-14 01:42:35 +02:00
parent 9fcbb420ee
commit e5e1df0cb0
1 changed files with 1 additions and 1 deletions

View File

@ -87,7 +87,7 @@ case ${ID,,} in
[wget]=wget
)
EXTRA_PKG_DEPS=()
sudo -E yum updateinfo
sudo -E ${PKG_MANAGER} updateinfo
if $(grep -q Fedora /etc/redhat-release); then
EXTRA_PKG_DEPS="python-dnf redhat-rpm-config"
fi