Make rdo-release install safe

Like the epel element, this may be applied to a system that already
has rdo-release installed.  If that happens yum exits non-zero
because for some reason it considers "nothing to do" to be an error.

This simply checks for the existence of the rdo-release rpm before
attempting to install it.

Change-Id: I5867ca074cc1afa843ef1e0f85c1c9b6f2deb403
This commit is contained in:
Ben Nemec 2014-10-20 15:41:50 -05:00
parent d4cceac4d9
commit e86f461a6c
1 changed files with 1 additions and 1 deletions

View File

@ -2,4 +2,4 @@
set -eux
install-packages http://rdo.fedorapeople.org/openstack-$RDO_RELEASE/rdo-release-$RDO_RELEASE.rpm
rpm -q rdo-release || install-packages http://rdo.fedorapeople.org/openstack-$RDO_RELEASE/rdo-release-$RDO_RELEASE.rpm