Skip to content

Commit

Permalink
Be more flexible when checking package requirements in containerbuild.sh
Browse files Browse the repository at this point in the history
A requirement might be provided by an RPM with a different name, e.g.
qemu-kvm is also provided by qemu-kvm-ev:

$ rpm -q --provides qemu-kvm-ev
...
qemu-kvm = 10:2.3.0-31.el7.centos_2.21.1
qemu-kvm-ev = 10:2.3.0-31.el7.centos_2.21.1
  • Loading branch information
farosas committed Nov 14, 2016
1 parent 072a3b9 commit 4c3724d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docker/containerbuild.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ fi
PACKAGES=( lorax libvirt virt-install qemu-kvm )
for Element in "${PACKAGES[@]}"
do
TEST=`rpm -q $Element`
TEST=`rpm -q --whatprovides $Element`
if [ "$?" -gt 0 ]
then echo "RPM $Element missing"
exit 1
Expand Down

0 comments on commit 4c3724d

Please sign in to comment.