Call rpm --whatprovides on packages required to run puppet

We install the packages with one yum command but it won't return
error if some of the packages are missing. We better check that
using rpm.

Change-Id: Ie2537c5c0e3348d2c7df6b9bfc40939985171b45
This commit is contained in:
Lukas Bezdicka
2014-09-05 10:50:44 +02:00
parent aafd611a5f
commit 67b98ec179

View File

@@ -154,6 +154,9 @@ def install_deps(config, messages):
% packages)
server.append("yum update -y %s"
% packages)
# yum does not fail if one of the packages is missing
for package in deps:
server.append("rpm -q --whatprovides %s" % (package))
server.execute()